Fix gesture and viewer preview sounds not playing
parent
390c3a3b6f
commit
43c270b536
|
@ -6016,8 +6016,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
SoundTrigger handlerSoundTrigger = OnSoundTrigger;
|
||||
if (handlerSoundTrigger != null)
|
||||
{
|
||||
handlerSoundTrigger(soundTriggerPacket.SoundData.SoundID, soundTriggerPacket.SoundData.OwnerID,
|
||||
soundTriggerPacket.SoundData.ObjectID, soundTriggerPacket.SoundData.ParentID,
|
||||
// UUIDS are sent as zeroes by the client, substitute agent's id
|
||||
handlerSoundTrigger(soundTriggerPacket.SoundData.SoundID, AgentId,
|
||||
AgentId, AgentId,
|
||||
soundTriggerPacket.SoundData.Gain, soundTriggerPacket.SoundData.Position,
|
||||
soundTriggerPacket.SoundData.Handle, 0);
|
||||
|
||||
|
|
|
@ -106,8 +106,13 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
|||
{
|
||||
SceneObjectPart part = m_scene.GetSceneObjectPart(objectID);
|
||||
if (part == null)
|
||||
{
|
||||
ScenePresence sp;
|
||||
if (!m_scene.TryGetScenePresence(objectID, out sp))
|
||||
return;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
SceneObjectGroup grp = part.ParentGroup;
|
||||
|
||||
if (grp.IsAttachment && grp.GetAttachmentPoint() > 30)
|
||||
|
@ -115,6 +120,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
|
|||
objectID = ownerID;
|
||||
parentID = ownerID;
|
||||
}
|
||||
}
|
||||
|
||||
m_scene.ForEachScenePresence(delegate(ScenePresence sp)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue