diff options
author | Melanie | 2010-11-17 17:54:32 +0100 |
---|---|---|
committer | Melanie | 2010-11-17 18:20:24 +0000 |
commit | 43c270b5367a7bdc8f685213488fb4f3437ab89b (patch) | |
tree | 0772e048657c0b4de0cae3f77482290c997e0d55 /OpenSim/Region/CoreModules/World/Sound | |
parent | Prevent leftover attachments from clogging up the pipes (diff) | |
download | opensim-SC-43c270b5367a7bdc8f685213488fb4f3437ab89b.zip opensim-SC-43c270b5367a7bdc8f685213488fb4f3437ab89b.tar.gz opensim-SC-43c270b5367a7bdc8f685213488fb4f3437ab89b.tar.bz2 opensim-SC-43c270b5367a7bdc8f685213488fb4f3437ab89b.tar.xz |
Fix gesture and viewer preview sounds not playing
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Sound')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs index abd28c8..8df44fe 100644 --- a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs +++ b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | |||
@@ -106,14 +106,20 @@ namespace OpenSim.Region.CoreModules.World.Sound | |||
106 | { | 106 | { |
107 | SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); | 107 | SceneObjectPart part = m_scene.GetSceneObjectPart(objectID); |
108 | if (part == null) | 108 | if (part == null) |
109 | return; | ||
110 | |||
111 | SceneObjectGroup grp = part.ParentGroup; | ||
112 | |||
113 | if (grp.IsAttachment && grp.GetAttachmentPoint() > 30) | ||
114 | { | 109 | { |
115 | objectID = ownerID; | 110 | ScenePresence sp; |
116 | parentID = ownerID; | 111 | if (!m_scene.TryGetScenePresence(objectID, out sp)) |
112 | return; | ||
113 | } | ||
114 | else | ||
115 | { | ||
116 | SceneObjectGroup grp = part.ParentGroup; | ||
117 | |||
118 | if (grp.IsAttachment && grp.GetAttachmentPoint() > 30) | ||
119 | { | ||
120 | objectID = ownerID; | ||
121 | parentID = ownerID; | ||
122 | } | ||
117 | } | 123 | } |
118 | 124 | ||
119 | m_scene.ForEachScenePresence(delegate(ScenePresence sp) | 125 | m_scene.ForEachScenePresence(delegate(ScenePresence sp) |