From 168a8e9ae5bd36bbe393f36e9a9ff17dbd4699ca Mon Sep 17 00:00:00 2001 From: Melanie Date: Sat, 31 Jul 2010 01:03:14 +0100 Subject: 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. --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 6edd08d..525f0f0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -1934,13 +1934,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } else { - if (llVecDist(new LSL_Vector(0,0,0), targetPos) <= 10.0f) - { - part.OffsetPosition = new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z); - SceneObjectGroup parent = part.ParentGroup; - parent.HasGroupChanged = true; - parent.ScheduleGroupForTerseUpdate(); - } + LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos); + part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z); + SceneObjectGroup parent = part.ParentGroup; + parent.HasGroupChanged = true; + parent.ScheduleGroupForTerseUpdate(); } } -- cgit v1.1