diff options
author | Justin Clarke Casey | 2009-03-27 20:41:35 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-03-27 20:41:35 +0000 |
commit | 30ffefb67bf3d74b6355113bc121437d0bdbba14 (patch) | |
tree | 9255ee55a832e759f83da36e021fac69ce4adc88 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | Moved a method GetDefaultVisualParameters from Scene to AvatarAppearance, whe... (diff) | |
download | opensim-SC_OLD-30ffefb67bf3d74b6355113bc121437d0bdbba14.zip opensim-SC_OLD-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.gz opensim-SC_OLD-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.bz2 opensim-SC_OLD-30ffefb67bf3d74b6355113bc121437d0bdbba14.tar.xz |
* refactor: call some EventManager triggers directly rather than through scene
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index f178550..d30a45f 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3101,11 +3101,8 @@ if (m_shape != null) { | |||
3101 | 3101 | ||
3102 | public void TriggerScriptChangedEvent(Changed val) | 3102 | public void TriggerScriptChangedEvent(Changed val) |
3103 | { | 3103 | { |
3104 | if (m_parentGroup != null) | 3104 | if (m_parentGroup != null && m_parentGroup.Scene != null) |
3105 | { | 3105 | m_parentGroup.Scene.EventManager.TriggerOnScriptChangedEvent(LocalId, (uint)val); |
3106 | if (m_parentGroup.Scene != null) | ||
3107 | m_parentGroup.Scene.TriggerObjectChanged(LocalId, (uint)val); | ||
3108 | } | ||
3109 | } | 3106 | } |
3110 | 3107 | ||
3111 | public void TrimPermissions() | 3108 | public void TrimPermissions() |