make getBoundsCenter() call GetBoundsRadius() to do the math if needed

LSLKeyTest
UbitUmarov 2016-07-13 22:35:46 +01:00
parent 00687d5b0f
commit 445fb51455
1 changed files with 4 additions and 1 deletions

View File

@ -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