From 045f3b8b110780953953b0b5187be69ea75b7c65 Mon Sep 17 00:00:00 2001 From: Melanie Date: Thu, 5 Jan 2012 07:37:31 +0100 Subject: Clean up GetWorldPosition --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index fa8b1c0..c45cfb8 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -2015,13 +2015,9 @@ namespace OpenSim.Region.Framework.Scenes axPos *= parentRot; Vector3 translationOffsetPosition = axPos; if(_parentID == 0) - { - return GroupPosition; - } - else - { - return ParentGroup.AbsolutePosition + translationOffsetPosition; //KF: Fix child prim position - } + return GroupPosition; + else + return ParentGroup.AbsolutePosition + translationOffsetPosition; } /// -- cgit v1.1