Don't rotate child prims, if only the root prim is rotated.
parent
cfce2529ad
commit
e3885625a0
|
@ -2926,8 +2926,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
axPos *= Quaternion.Inverse(axRot);
|
axPos *= Quaternion.Inverse(axRot);
|
||||||
prim.OffsetPosition = axPos;
|
prim.OffsetPosition = axPos;
|
||||||
Quaternion primsRot = prim.RotationOffset;
|
Quaternion primsRot = prim.RotationOffset;
|
||||||
Quaternion newRot = primsRot * oldParentRot;
|
Quaternion newRot = oldParentRot * primsRot;
|
||||||
newRot *= Quaternion.Inverse(axRot);
|
newRot = Quaternion.Inverse(axRot) * newRot;
|
||||||
prim.RotationOffset = newRot;
|
prim.RotationOffset = newRot;
|
||||||
prim.ScheduleTerseUpdate();
|
prim.ScheduleTerseUpdate();
|
||||||
prim.IgnoreUndoUpdate = false;
|
prim.IgnoreUndoUpdate = false;
|
||||||
|
|
Loading…
Reference in New Issue