diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d89c1c0..0eaac64 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -3535,23 +3535,23 @@ namespace OpenSim.Region.Framework.Scenes | |||
3535 | /// <param name="args">The arguments for the event</param> | 3535 | /// <param name="args">The arguments for the event</param> |
3536 | public void SendScriptEventToAttachments(string eventName, Object[] args) | 3536 | public void SendScriptEventToAttachments(string eventName, Object[] args) |
3537 | { | 3537 | { |
3538 | if (m_scriptEngines != null) | 3538 | if (m_scriptEngines.Length == 0) |
3539 | return; | ||
3540 | |||
3541 | lock (m_attachments) | ||
3539 | { | 3542 | { |
3540 | lock (m_attachments) | 3543 | foreach (SceneObjectGroup grp in m_attachments) |
3541 | { | 3544 | { |
3542 | foreach (SceneObjectGroup grp in m_attachments) | 3545 | // 16384 is CHANGED_ANIMATION |
3546 | // | ||
3547 | // Send this to all attachment root prims | ||
3548 | // | ||
3549 | foreach (IScriptModule m in m_scriptEngines) | ||
3543 | { | 3550 | { |
3544 | // 16384 is CHANGED_ANIMATION | 3551 | if (m == null) // No script engine loaded |
3545 | // | 3552 | continue; |
3546 | // Send this to all attachment root prims | ||
3547 | // | ||
3548 | foreach (IScriptModule m in m_scriptEngines) | ||
3549 | { | ||
3550 | if (m == null) // No script engine loaded | ||
3551 | continue; | ||
3552 | 3553 | ||
3553 | m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] { (int)Changed.ANIMATION }); | 3554 | m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] { (int)Changed.ANIMATION }); |
3554 | } | ||
3555 | } | 3555 | } |
3556 | } | 3556 | } |
3557 | } | 3557 | } |