Thank you, Snoopy, for a patch to fix child prim movement. This still doesn't

address limiting link distance, but at least it makes the UI and LSL
match.
0.6.9-post-fixes
Justin Clark-Casey (justincc) 2010-08-14 01:19:38 +01:00
parent 489da41b3c
commit bf107b0207
1 changed files with 5 additions and 8 deletions

View File

@ -1911,14 +1911,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
else else
{ {
//it's late... i think this is right ? LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos);
if (llVecDist(new LSL_Vector(0,0,0), targetPos) <= 10.0f) part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
{ SceneObjectGroup parent = part.ParentGroup;
part.OffsetPosition = new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z); parent.HasGroupChanged = true;
SceneObjectGroup parent = part.ParentGroup; parent.ScheduleGroupForTerseUpdate();
parent.HasGroupChanged = true;
parent.ScheduleGroupForTerseUpdate();
}
} }
} }