aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs7
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()