mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
moving SendSound from SceneObjectPart to ISoundModule
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
af39af1cc4
commit
5abcecc735
@@ -821,8 +821,11 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
{
|
||||
if (!CanEdit())
|
||||
return;
|
||||
|
||||
GetSOP().SendSound(asset.ToString(), volume, true, 0, 0, false, false);
|
||||
ISoundModule module = m_rootScene.RequestModuleInterface<ISoundModule>();
|
||||
if (module != null)
|
||||
{
|
||||
module.SendSound(GetSOP().UUID, asset.ToString(), volume, true, 0, 0, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user