Add a CHANGED_POSITION event so scripts don't have to run expensive loops to check for position changes

This commit is contained in:
Tom
2010-08-07 06:28:04 -07:00
parent f9f776e407
commit 4f80d75bf3
3 changed files with 5 additions and 1 deletions

View File

@@ -476,6 +476,7 @@ namespace OpenSim.Region.Framework.Scenes
part.IgnoreUndoUpdate = false;
part.StoreUndoState(UndoType.STATE_GROUP_POSITION);
part.GroupPosition = val;
part.TriggerScriptChangedEvent(Changed.POSITION);
}
foreach (ScenePresence av in m_linkedAvatars)