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

This commit is contained in:
Justin Clark-Casey (justincc)
2013-03-14 21:57:43 +00:00
parent ad9bd3fe93
commit f840728273

View File

@@ -2181,10 +2181,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
else
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()