aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-07-31 01:03:14 +0100
committerDiva Canto2010-07-31 09:30:44 -0700
commit875a623654a9024749557e46f772556443e85c05 (patch)
treeb9dcc120f8321e7f60c0c3c5389679712ce47c72 /OpenSim
parentBug fix: make m_HypergridLinker static. (diff)
downloadopensim-SC_OLD-875a623654a9024749557e46f772556443e85c05.zip
opensim-SC_OLD-875a623654a9024749557e46f772556443e85c05.tar.gz
opensim-SC_OLD-875a623654a9024749557e46f772556443e85c05.tar.bz2
opensim-SC_OLD-875a623654a9024749557e46f772556443e85c05.tar.xz
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.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index f3f7269..26dba30 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
1934 } 1934 }
1935 else 1935 else
1936 { 1936 {
1937 if (llVecDist(new LSL_Vector(0,0,0), targetPos) <= 10.0f) 1937 LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos);
1938 { 1938 part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
1939 part.OffsetPosition = new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z); 1939 SceneObjectGroup parent = part.ParentGroup;
1940 SceneObjectGroup parent = part.ParentGroup; 1940 parent.HasGroupChanged = true;
1941 parent.HasGroupChanged = true; 1941 parent.ScheduleGroupForTerseUpdate();
1942 parent.ScheduleGroupForTerseUpdate();
1943 }
1944 } 1942 }
1945 } 1943 }
1946 1944