aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorTom2010-08-03 22:41:02 -0700
committerTom2010-08-03 22:41:02 -0700
commitcd9506e8428da7b984bdd833e6855534a90f3b5e (patch)
treec5f94709b6772ef88b58af83a9e01133ec27b3d4 /OpenSim/Region/ScriptEngine
parentMerge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff)
downloadopensim-SC_OLD-cd9506e8428da7b984bdd833e6855534a90f3b5e.zip
opensim-SC_OLD-cd9506e8428da7b984bdd833e6855534a90f3b5e.tar.gz
opensim-SC_OLD-cd9506e8428da7b984bdd833e6855534a90f3b5e.tar.bz2
opensim-SC_OLD-cd9506e8428da7b984bdd833e6855534a90f3b5e.tar.xz
Don't know HOW we missed this, llSetPos was broken in child prims (and in the llSetPrimitveParams family), it was using the global coordinate as a start location. This resolves mantis #204
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 52d3285..0a1a10c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2116,7 +2116,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2116 } 2116 }
2117 else 2117 else
2118 { 2118 {
2119 LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos); 2119 LSL_Vector rel_vec = SetPosAdjust(new LSL_Vector(part.OffsetPosition.X, part.OffsetPosition.Y, part.OffsetPosition.Z), targetPos);
2120 part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z); 2120 part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
2121 SceneObjectGroup parent = part.ParentGroup; 2121 SceneObjectGroup parent = part.ParentGroup;
2122 parent.HasGroupChanged = true; 2122 parent.HasGroupChanged = true;