mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Change the part for sound playback to be the root part / object UUID instead
of the child prim because using the child prim plain doesn't work.
This commit is contained in:
@@ -2694,7 +2694,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public void PreloadSound(string sound)
|
||||
{
|
||||
// UUID ownerID = OwnerID;
|
||||
UUID objectID = UUID;
|
||||
UUID objectID = ParentGroup.RootPart.UUID;
|
||||
UUID soundID = UUID.Zero;
|
||||
|
||||
if (!UUID.TryParse(sound, out soundID))
|
||||
@@ -3101,7 +3101,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
volume = 0;
|
||||
|
||||
UUID ownerID = _ownerID;
|
||||
UUID objectID = UUID;
|
||||
UUID objectID = ParentGroup.RootPart.UUID;
|
||||
UUID parentID = GetRootPartUUID();
|
||||
UUID soundID = UUID.Zero;
|
||||
Vector3 position = AbsolutePosition; // region local
|
||||
@@ -3138,11 +3138,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
else
|
||||
soundModule.PlayAttachedSound(soundID, ownerID, objectID, volume, position, flags, radius);
|
||||
ParentGroup.PlaySoundMasterPrim = this;
|
||||
ownerID = this._ownerID;
|
||||
objectID = this.UUID;
|
||||
parentID = this.GetRootPartUUID();
|
||||
position = this.AbsolutePosition; // region local
|
||||
regionHandle = this.ParentGroup.Scene.RegionInfo.RegionHandle;
|
||||
ownerID = _ownerID;
|
||||
objectID = ParentGroup.RootPart.UUID;
|
||||
parentID = GetRootPartUUID();
|
||||
position = AbsolutePosition; // region local
|
||||
regionHandle = ParentGroup.Scene.RegionInfo.RegionHandle;
|
||||
if (triggered)
|
||||
soundModule.TriggerSound(soundID, ownerID, objectID, parentID, volume, position, regionHandle, radius);
|
||||
else
|
||||
@@ -3150,7 +3150,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
foreach (SceneObjectPart prim in ParentGroup.PlaySoundSlavePrims)
|
||||
{
|
||||
ownerID = prim._ownerID;
|
||||
objectID = prim.UUID;
|
||||
objectID = prim.ParentGroup.RootPart.UUID;
|
||||
parentID = prim.GetRootPartUUID();
|
||||
position = prim.AbsolutePosition; // region local
|
||||
regionHandle = prim.ParentGroup.Scene.RegionInfo.RegionHandle;
|
||||
|
||||
Reference in New Issue
Block a user