Allow a script to receive events if its root prim is in an area where it's allowed to run rather than checking its own prim.

This allows scripts to run in child prims that are outside region boundaries.
This is an interim patch applied from http://opensimulator.org/mantis/view.php?id=5899 though it does not resolve that bug
Thanks tglion!
xassetservice
Justin Clark-Casey (justincc) 2012-03-02 22:43:24 +00:00
parent 64a036b4cf
commit 089fd61a3b
1 changed files with 1 additions and 4 deletions

View File

@ -4162,10 +4162,7 @@ namespace OpenSim.Region.Framework.Scenes
// their scripts will actually run.
// -- Leaf, Tue Aug 12 14:17:05 EDT 2008
SceneObjectPart parent = part.ParentGroup.RootPart;
if (part.ParentGroup.IsAttachment)
return ScriptDanger(parent, parent.GetWorldPosition());
else
return ScriptDanger(part, part.GetWorldPosition());
return ScriptDanger(parent, parent.GetWorldPosition());
}
else
{