diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-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) |