refactor: use cleaner LSL_Rotation quaternion constructor in LSL_Api.GetPartRot()
parent
2fd9456f4f
commit
66749eafdd
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue