diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 722905f..d556fd1 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1576,9 +1576,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1576 | private Vector3 m_boundsCenter; | 1576 | private Vector3 m_boundsCenter; |
1577 | public Vector3 getBoundsCenter() | 1577 | public Vector3 getBoundsCenter() |
1578 | { | 1578 | { |
1579 | // this needs to be called after GetBoundsRadius() so its updated | 1579 | // math is done in GetBoundsRadius(); |
1580 | if(m_boundsRadius == null) | ||
1581 | GetBoundsRadius(); | ||
1580 | return m_boundsCenter; | 1582 | return m_boundsCenter; |
1581 | } | 1583 | } |
1584 | |||
1582 | public float GetBoundsRadius() | 1585 | public float GetBoundsRadius() |
1583 | { | 1586 | { |
1584 | // this may need more threading work | 1587 | // this may need more threading work |