Fix playing sound from HUDs

This commit is contained in:
Melanie
2010-11-03 23:20:30 +01:00
parent 5f8ab9f018
commit c2bd6ccdb8
2 changed files with 16 additions and 10 deletions

View File

@@ -3115,14 +3115,6 @@ namespace OpenSim.Region.Framework.Scenes
UUID objectID = ParentGroup.RootPart.UUID;
UUID parentID = GetRootPartUUID();
if (ParentGroup.IsAttachment && ParentGroup.RootPart.Shape.State > 30)
{
// Use the avatar as the parent for HUDs, since the prims
// are not sent to other avatars
objectID = _ownerID;
parentID = _ownerID;
}
UUID soundID = UUID.Zero;
Vector3 position = AbsolutePosition; // region local
ulong regionHandle = m_parentGroup.Scene.RegionInfo.RegionHandle;