diff options
author | Melanie | 2012-06-14 00:57:05 +0100 |
---|---|---|
committer | Melanie | 2012-06-14 00:57:05 +0100 |
commit | 36117e079aa8b149b3764d0beb853251ff77ca09 (patch) | |
tree | 244337e3da7bf5a65c3eaf1396d2a0a8f0d60ef5 /OpenSim/Region/Framework/Scenes | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Add SOG.HasPrivateAttachmentPoint to tell if a SOG has a private attachment p... (diff) | |
download | opensim-SC-36117e079aa8b149b3764d0beb853251ff77ca09.zip opensim-SC-36117e079aa8b149b3764d0beb853251ff77ca09.tar.gz opensim-SC-36117e079aa8b149b3764d0beb853251ff77ca09.tar.bz2 opensim-SC-36117e079aa8b149b3764d0beb853251ff77ca09.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 5 |
2 files changed, 19 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 904c896..5aeee52 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -244,6 +244,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
244 | } | 244 | } |
245 | } | 245 | } |
246 | 246 | ||
247 | /// <summary> | ||
248 | /// If this scene object has an attachment point then indicate whether there is a point where | ||
249 | /// attachments are perceivable by avatars other than the avatar to which this object is attached. | ||
250 | /// </summary> | ||
251 | /// <remarks> | ||
252 | /// HUDs are not perceivable by other avatars. | ||
253 | /// </remarks> | ||
254 | public bool HasPrivateAttachmentPoint | ||
255 | { | ||
256 | get | ||
257 | { | ||
258 | return AttachmentPoint >= (uint)OpenMetaverse.AttachmentPoint.HUDCenter2 | ||
259 | && AttachmentPoint <= (uint)OpenMetaverse.AttachmentPoint.HUDBottomRight; | ||
260 | } | ||
261 | } | ||
262 | |||
247 | public void ClearPartAttachmentData() | 263 | public void ClearPartAttachmentData() |
248 | { | 264 | { |
249 | AttachmentPoint = 0; | 265 | AttachmentPoint = 0; |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 61ef827..c1fe6a3 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3125,8 +3125,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3125 | if (ParentGroup.IsDeleted) | 3125 | if (ParentGroup.IsDeleted) |
3126 | return; | 3126 | return; |
3127 | 3127 | ||
3128 | if (ParentGroup.IsAttachment && (ParentGroup.AttachedAvatar != remoteClient.AgentId) && | 3128 | if (ParentGroup.IsAttachment |
3129 | (ParentGroup.AttachmentPoint >= 31) && (ParentGroup.AttachmentPoint <= 38)) | 3129 | && ParentGroup.AttachedAvatar != remoteClient.AgentId |
3130 | && ParentGroup.HasPrivateAttachmentPoint) | ||
3130 | return; | 3131 | return; |
3131 | 3132 | ||
3132 | if (remoteClient.AgentId == OwnerID) | 3133 | if (remoteClient.AgentId == OwnerID) |