diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 108f3c8..4324cc0 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4330,16 +4330,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
4330 | public bool PipeEventsForScript(uint localID) | 4330 | public bool PipeEventsForScript(uint localID) |
4331 | { | 4331 | { |
4332 | SceneObjectPart part = GetSceneObjectPart(localID); | 4332 | SceneObjectPart part = GetSceneObjectPart(localID); |
4333 | |||
4333 | if (part != null) | 4334 | if (part != null) |
4334 | { | 4335 | { |
4335 | // Changed so that child prims of attachments return ScriptDanger for their parent, so that | ||
4336 | // their scripts will actually run. | ||
4337 | // -- Leaf, Tue Aug 12 14:17:05 EDT 2008 | ||
4338 | SceneObjectPart parent = part.ParentGroup.RootPart; | 4336 | SceneObjectPart parent = part.ParentGroup.RootPart; |
4339 | if (part.ParentGroup.IsAttachment) | 4337 | return ScriptDanger(parent, parent.GetWorldPosition()); |
4340 | return ScriptDanger(parent, parent.GetWorldPosition()); | ||
4341 | else | ||
4342 | return ScriptDanger(part, part.GetWorldPosition()); | ||
4343 | } | 4338 | } |
4344 | else | 4339 | else |
4345 | { | 4340 | { |