diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f45a08c..a01b851 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4156,11 +4156,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
4156 | public bool PipeEventsForScript(uint localID) | 4156 | public bool PipeEventsForScript(uint localID) |
4157 | { | 4157 | { |
4158 | SceneObjectPart part = GetSceneObjectPart(localID); | 4158 | SceneObjectPart part = GetSceneObjectPart(localID); |
4159 | |||
4159 | if (part != null) | 4160 | if (part != null) |
4160 | { | 4161 | { |
4161 | // Changed so that child prims of attachments return ScriptDanger for their parent, so that | ||
4162 | // their scripts will actually run. | ||
4163 | // -- Leaf, Tue Aug 12 14:17:05 EDT 2008 | ||
4164 | SceneObjectPart parent = part.ParentGroup.RootPart; | 4162 | SceneObjectPart parent = part.ParentGroup.RootPart; |
4165 | return ScriptDanger(parent, parent.GetWorldPosition()); | 4163 | return ScriptDanger(parent, parent.GetWorldPosition()); |
4166 | } | 4164 | } |