From 61b7ec5fb552d045343590c773565968d1cdb6c1 Mon Sep 17 00:00:00 2001 From: Kitto Flora Date: Sun, 26 Dec 2010 22:52:03 +0000 Subject: [PATCH] Fixing AbsolutePosition to correct llSensor in vehicles --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 3e3f032641..6496a251e4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -1108,12 +1108,10 @@ namespace OpenSim.Region.Framework.Scenes public Vector3 AbsolutePosition { - get { - if (IsAttachment) - return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset); - -// return m_offsetPosition + m_groupPosition; } - return m_groupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset) ; } //KF: Rotation was ignored! + get + { + return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset); + } } public SceneObjectGroup ParentGroup