mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Send moving_end event to scripts when keyframed motion ends.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user