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

avinationmerge
Tom 2010-08-03 22:41:02 -07:00
parent 6076eb5558
commit cd9506e842
1 changed files with 1 additions and 1 deletions

View File

@ -2116,7 +2116,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
else
{
LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos);
LSL_Vector rel_vec = SetPosAdjust(new LSL_Vector(part.OffsetPosition.X, part.OffsetPosition.Y, part.OffsetPosition.Z), targetPos);
part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
SceneObjectGroup parent = part.ParentGroup;
parent.HasGroupChanged = true;