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

user_profiles
Justin Clark-Casey (justincc) 2013-03-14 21:57:43 +00:00
parent ad9bd3fe93
commit f840728273
1 changed files with 4 additions and 3 deletions

View File

@ -2181,10 +2181,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()