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
Charles Krinke 2008-08-13 14:19:59 +00:00
parent 323ada012d
commit 9d93668a0a
1 changed files with 8 additions and 2 deletions

View File

@ -3466,8 +3466,14 @@ namespace OpenSim.Region.Environment.Scenes
SceneObjectPart part = GetSceneObjectPart(localID);
if (part != null)
{
LLVector3 pos = part.GetWorldPosition();
return scriptDanger(part, pos);
// Changed so that child prims of attachments return scriptDanger for their parent, so that
// 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
{