Merge branch 'master' into careminster
Conflicts: OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.csavinationmerge
commit
277491d871
|
@ -11795,11 +11795,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
ret.Add(new LSL_Vector(opos.X, opos.Y, opos.Z));
|
ret.Add(new LSL_Vector(opos.X, opos.Y, opos.Z));
|
||||||
break;
|
break;
|
||||||
case ScriptBaseClass.OBJECT_ROT:
|
case ScriptBaseClass.OBJECT_ROT:
|
||||||
// Quaternion orot = obj.RotationOffset;
|
{
|
||||||
// ret.Add(new LSL_Rotation(orot.X, orot.Y, orot.Z, orot.W));
|
Quaternion rot = Quaternion.Identity;
|
||||||
|
|
||||||
LSL_Rotation objrot = GetPartRot(obj);
|
if (obj.ParentGroup.RootPart == obj)
|
||||||
|
rot = obj.ParentGroup.GroupRotation;
|
||||||
|
else
|
||||||
|
rot = obj.GetWorldRotation();
|
||||||
|
|
||||||
|
LSL_Rotation objrot = new LSL_Rotation(rot.X, rot.Y, rot.Z, rot.W);
|
||||||
ret.Add(objrot);
|
ret.Add(objrot);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case ScriptBaseClass.OBJECT_VELOCITY:
|
case ScriptBaseClass.OBJECT_VELOCITY:
|
||||||
Vector3 ovel = obj.Velocity;
|
Vector3 ovel = obj.Velocity;
|
||||||
|
|
Loading…
Reference in New Issue