aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs31
1 files changed, 17 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 5177273..b1b2dc7 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3564,26 +3564,29 @@ namespace OpenSim.Region.Framework.Scenes
3564 /// <param name="args">The arguments for the event</param> 3564 /// <param name="args">The arguments for the event</param>
3565 public void SendScriptEventToAttachments(string eventName, Object[] args) 3565 public void SendScriptEventToAttachments(string eventName, Object[] args)
3566 { 3566 {
3567 if (m_scriptEngines.Length == 0) 3567 Util.FireAndForget(delegate(object x)
3568 return;
3569
3570 lock (m_attachments)
3571 { 3568 {
3572 foreach (SceneObjectGroup grp in m_attachments) 3569 if (m_scriptEngines.Length == 0)
3570 return;
3571
3572 lock (m_attachments)
3573 { 3573 {
3574 // 16384 is CHANGED_ANIMATION 3574 foreach (SceneObjectGroup grp in m_attachments)
3575 //
3576 // Send this to all attachment root prims
3577 //
3578 foreach (IScriptModule m in m_scriptEngines)
3579 { 3575 {
3580 if (m == null) // No script engine loaded 3576 // 16384 is CHANGED_ANIMATION
3581 continue; 3577 //
3578 // Send this to all attachment root prims
3579 //
3580 foreach (IScriptModule m in m_scriptEngines)
3581 {
3582 if (m == null) // No script engine loaded
3583 continue;
3582 3584
3583 m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] { (int)Changed.ANIMATION }); 3585 m.PostObjectEvent(grp.RootPart.UUID, "changed", new Object[] { (int)Changed.ANIMATION });
3586 }
3584 } 3587 }
3585 } 3588 }
3586 } 3589 });
3587 } 3590 }
3588 3591
3589 internal void PushForce(Vector3 impulse) 3592 internal void PushForce(Vector3 impulse)