* refactor: call some EventManager triggers directly rather than through scene

This commit is contained in:
Justin Clarke Casey
2009-03-27 20:41:35 +00:00
parent bce5ed5812
commit 30ffefb67b
3 changed files with 10 additions and 23 deletions

View File

@@ -3101,11 +3101,8 @@ if (m_shape != null) {
public void TriggerScriptChangedEvent(Changed val)
{
if (m_parentGroup != null)
{
if (m_parentGroup.Scene != null)
m_parentGroup.Scene.TriggerObjectChanged(LocalId, (uint)val);
}
if (m_parentGroup != null && m_parentGroup.Scene != null)
m_parentGroup.Scene.EventManager.TriggerOnScriptChangedEvent(LocalId, (uint)val);
}
public void TrimPermissions()