diff options
author | UbitUmarov | 2016-07-13 22:35:46 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-13 22:35:46 +0100 |
commit | 445fb51455f7218a62133dbb28d2a2cae60c9472 (patch) | |
tree | f4367bdd552953eced925728895678fd563d4da1 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | use geometric center and not sog root position in culling (diff) | |
download | opensim-SC_OLD-445fb51455f7218a62133dbb28d2a2cae60c9472.zip opensim-SC_OLD-445fb51455f7218a62133dbb28d2a2cae60c9472.tar.gz opensim-SC_OLD-445fb51455f7218a62133dbb28d2a2cae60c9472.tar.bz2 opensim-SC_OLD-445fb51455f7218a62133dbb28d2a2cae60c9472.tar.xz |
make getBoundsCenter() call GetBoundsRadius() to do the math if needed
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-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 |