Don't rotate child prims, if only the root prim is rotated.

remove-scene-viewer
nebadon 2011-11-05 02:26:25 -07:00
parent cfce2529ad
commit e3885625a0
1 changed files with 2 additions and 2 deletions

View File

@ -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;