mantis#1927. Thank you kindly, Leaf for a patch that:
Makes progress on fixing scripts in child prims of attachments not being scheduled for execution.0.6.0-stable
parent
323ada012d
commit
9d93668a0a
|
@ -3466,8 +3466,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
SceneObjectPart part = GetSceneObjectPart(localID);
|
SceneObjectPart part = GetSceneObjectPart(localID);
|
||||||
if (part != null)
|
if (part != null)
|
||||||
{
|
{
|
||||||
LLVector3 pos = part.GetWorldPosition();
|
// Changed so that child prims of attachments return scriptDanger for their parent, so that
|
||||||
return scriptDanger(part, pos);
|
// their scripts will actually run.
|
||||||
|
// -- Leaf, Tue Aug 12 14:17:05 EDT 2008
|
||||||
|
SceneObjectPart parent = part.ParentGroup.RootPart;
|
||||||
|
if( parent != null && parent.IsAttachment )
|
||||||
|
return scriptDanger(parent, parent.GetWorldPosition() );
|
||||||
|
else
|
||||||
|
return scriptDanger(part, part.GetWorldPosition() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue