diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index a0fabff..ba84b88 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3044,6 +3044,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
3044 | UUID ownerID = _ownerID; | 3044 | UUID ownerID = _ownerID; |
3045 | UUID objectID = UUID; | 3045 | UUID objectID = UUID; |
3046 | UUID parentID = GetRootPartUUID(); | 3046 | UUID parentID = GetRootPartUUID(); |
3047 | |||
3048 | if (ParentGroup.IsAttachment && ParentGroup.RootPart.Shape.State > 30) | ||
3049 | { | ||
3050 | // Use the avatar as the parent for HUDs, since the prims | ||
3051 | // are not sent to other avatars | ||
3052 | objectID = _ownerID; | ||
3053 | parentID = _ownerID; | ||
3054 | } | ||
3055 | |||
3047 | UUID soundID = UUID.Zero; | 3056 | UUID soundID = UUID.Zero; |
3048 | Vector3 position = AbsolutePosition; // region local | 3057 | Vector3 position = AbsolutePosition; // region local |
3049 | ulong regionHandle = m_parentGroup.Scene.RegionInfo.RegionHandle; | 3058 | ulong regionHandle = m_parentGroup.Scene.RegionInfo.RegionHandle; |