mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
make getBoundsCenter() call GetBoundsRadius() to do the math if needed
This commit is contained in:
@@ -1576,9 +1576,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
private Vector3 m_boundsCenter;
|
||||
public Vector3 getBoundsCenter()
|
||||
{
|
||||
// this needs to be called after GetBoundsRadius() so its updated
|
||||
// math is done in GetBoundsRadius();
|
||||
if(m_boundsRadius == null)
|
||||
GetBoundsRadius();
|
||||
return m_boundsCenter;
|
||||
}
|
||||
|
||||
public float GetBoundsRadius()
|
||||
{
|
||||
// this may need more threading work
|
||||
|
||||
Reference in New Issue
Block a user