refactor: use cleaner LSL_Rotation quaternion constructor in LSL_Api.GetPartRot()

0.7.4-extended
Justin Clark-Casey (justincc) 2013-03-14 21:57:43 +00:00
parent 2fd9456f4f
commit 66749eafdd
1 changed files with 4 additions and 3 deletions

View File

@ -2191,10 +2191,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
else else
q = part.ParentGroup.GroupRotation; // just the group rotation q = part.ParentGroup.GroupRotation; // just the group rotation
return new LSL_Rotation(q.X, q.Y, q.Z, q.W);
return new LSL_Rotation(q);
} }
q = part.GetWorldRotation();
return new LSL_Rotation(q.X, q.Y, q.Z, q.W); return new LSL_Rotation(part.GetWorldRotation());
} }
public LSL_Rotation llGetLocalRot() public LSL_Rotation llGetLocalRot()