Send moving_end event to scripts when keyframed motion ends.

avinationmerge
Melanie 2013-01-27 23:35:53 +01:00
parent 380b017e32
commit e336c50813
1 changed files with 10 additions and 0 deletions

View File

@ -525,6 +525,16 @@ namespace OpenSim.Region.Framework.Scenes
{
Stop();
m_inOnTimer = false;
Scene scene = m_group.Scene;
IScriptModule[] scriptModules = scene.RequestModuleInterfaces<IScriptModule>();
foreach (IScriptModule m in scriptModules)
{
if (m == null)
continue;
m.PostObjectEvent(m_group.RootPart.UUID, "moving_end", new object[0]);
}
return;
}