* Fixes linking using the new types.

quaternions are not communicative!
This commit is contained in:
Teravus Ovares
2008-09-07 13:24:23 +00:00
parent ec13642e1a
commit 3f55b03bbf

View File

@@ -1757,7 +1757,7 @@ namespace OpenSim.Region.Environment.Scenes
linkPart.OffsetPosition = axPos;
Quaternion oldRot = linkPart.RotationOffset;
Quaternion newRot = oldRot * Quaternion.Inverse(parentRot);
Quaternion newRot = Quaternion.Inverse(parentRot) * oldRot;
linkPart.RotationOffset = newRot;
linkPart.ParentID = m_rootPart.LocalId;