aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs17
1 files changed, 9 insertions, 8 deletions
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
602 foreach (SceneObjectPart part in m_parts.Values) 602 foreach (SceneObjectPart part in m_parts.Values)
603 { 603 {
604 Vector3 worldPos = part.GetWorldPosition(); 604 Vector3 worldPos = part.GetWorldPosition();
605 Vector3 offset = worldPos - AbsolutePosition;
605 Quaternion worldRot = part.GetWorldRotation(); 606 Quaternion worldRot = part.GetWorldRotation();
606 607
607 Vector3 frontTopLeft; 608 Vector3 frontTopLeft;
@@ -660,15 +661,15 @@ namespace OpenSim.Region.Framework.Scenes
660 backTopRight = backTopRight * worldRot; 661 backTopRight = backTopRight * worldRot;
661 662
662 663
663 //frontTopLeft += worldPos; 664 frontTopLeft += offset;
664 //frontTopRight += worldPos; 665 frontTopRight += offset;
665 //frontBottomLeft += worldPos; 666 frontBottomLeft += offset;
666 //frontBottomRight += worldPos; 667 frontBottomRight += offset;
667 668
668 //backBottomLeft += worldPos; 669 backBottomLeft += offset;
669 //backBottomRight += worldPos; 670 backBottomRight += offset;
670 //backTopLeft += worldPos; 671 backTopLeft += offset;
671 //backTopRight += worldPos; 672 backTopRight += offset;
672 673
673 if (frontTopRight.X > maxX) 674 if (frontTopRight.X > maxX)
674 maxX = frontTopRight.X; 675 maxX = frontTopRight.X;