From e336c50813b0bf1fff463e3d54e13530cb95ff0e Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 27 Jan 2013 23:35:53 +0100 Subject: [PATCH] Send moving_end event to scripts when keyframed motion ends. --- OpenSim/Region/Framework/Scenes/KeyframeMotion.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs index 5cfba39452..134a620851 100644 --- a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs +++ b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs @@ -525,6 +525,16 @@ namespace OpenSim.Region.Framework.Scenes { Stop(); m_inOnTimer = false; + Scene scene = m_group.Scene; + + IScriptModule[] scriptModules = scene.RequestModuleInterfaces(); + foreach (IScriptModule m in scriptModules) + { + if (m == null) + continue; + m.PostObjectEvent(m_group.RootPart.UUID, "moving_end", new object[0]); + } + return; }