aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorKitto Flora2010-12-26 22:52:03 +0000
committerKitto Flora2010-12-26 22:52:03 +0000
commit61b7ec5fb552d045343590c773565968d1cdb6c1 (patch)
treee1ba380cfb51fb7d845a09a81f334b02b48c96e2 /OpenSim/Region/Framework/Scenes
parentFix linking link sets to rotated prims. (diff)
downloadopensim-SC_OLD-61b7ec5fb552d045343590c773565968d1cdb6c1.zip
opensim-SC_OLD-61b7ec5fb552d045343590c773565968d1cdb6c1.tar.gz
opensim-SC_OLD-61b7ec5fb552d045343590c773565968d1cdb6c1.tar.bz2
opensim-SC_OLD-61b7ec5fb552d045343590c773565968d1cdb6c1.tar.xz
Fixing AbsolutePosition to correct llSensor in vehicles
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 3e3f032..6496a25 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1108,12 +1108,10 @@ namespace OpenSim.Region.Framework.Scenes
1108 1108
1109 public Vector3 AbsolutePosition 1109 public Vector3 AbsolutePosition
1110 { 1110 {
1111 get { 1111 get
1112 if (IsAttachment) 1112 {
1113 return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset); 1113 return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset);
1114 1114 }
1115// return m_offsetPosition + m_groupPosition; }
1116 return m_groupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset) ; } //KF: Rotation was ignored!
1117 } 1115 }
1118 1116
1119 public SceneObjectGroup ParentGroup 1117 public SceneObjectGroup ParentGroup