From 3a72531e4ca3ca52db05f637a219654cc7a02f7d Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 15 Jul 2009 10:42:27 +0000 Subject: More fixing of the boundingbox code. Still more work needed to get linksets to rezz correctly (not in the ground) --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index dcc39cc..de77862 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -602,6 +602,7 @@ namespace OpenSim.Region.Framework.Scenes foreach (SceneObjectPart part in m_parts.Values) { Vector3 worldPos = part.GetWorldPosition(); + Vector3 offset = worldPos - AbsolutePosition; Quaternion worldRot = part.GetWorldRotation(); Vector3 frontTopLeft; @@ -660,15 +661,15 @@ namespace OpenSim.Region.Framework.Scenes backTopRight = backTopRight * worldRot; - //frontTopLeft += worldPos; - //frontTopRight += worldPos; - //frontBottomLeft += worldPos; - //frontBottomRight += worldPos; + frontTopLeft += offset; + frontTopRight += offset; + frontBottomLeft += offset; + frontBottomRight += offset; - //backBottomLeft += worldPos; - //backBottomRight += worldPos; - //backTopLeft += worldPos; - //backTopRight += worldPos; + backBottomLeft += offset; + backBottomRight += offset; + backTopLeft += offset; + backTopRight += offset; if (frontTopRight.X > maxX) maxX = frontTopRight.X; -- cgit v1.1