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.7.0.1-release
Melanie 2010-07-31 01:03:14 +01:00 committed by Diva Canto
parent 81751a1753
commit 875a623654
1 changed files with 5 additions and 7 deletions

View File

@ -1934,13 +1934,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
else else
{ {
if (llVecDist(new LSL_Vector(0,0,0), targetPos) <= 10.0f) LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos);
{ part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
part.OffsetPosition = new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z); SceneObjectGroup parent = part.ParentGroup;
SceneObjectGroup parent = part.ParentGroup; parent.HasGroupChanged = true;
parent.HasGroupChanged = true; parent.ScheduleGroupForTerseUpdate();
parent.ScheduleGroupForTerseUpdate();
}
} }
} }