diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 4d6c4cb90e..3f4e112412 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -2926,8 +2926,8 @@ namespace OpenSim.Region.Framework.Scenes axPos *= Quaternion.Inverse(axRot); prim.OffsetPosition = axPos; Quaternion primsRot = prim.RotationOffset; - Quaternion newRot = primsRot * oldParentRot; - newRot *= Quaternion.Inverse(axRot); + Quaternion newRot = oldParentRot * primsRot; + newRot = Quaternion.Inverse(axRot) * newRot; prim.RotationOffset = newRot; prim.ScheduleTerseUpdate(); prim.IgnoreUndoUpdate = false;