From 3f55b03bbfcd751c0a38a19b1634814671662986 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 7 Sep 2008 13:24:23 +0000 Subject: * Fixes linking using the new types. quaternions are not communicative! --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index ffbef8a..80db10d 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -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; -- cgit v1.1