Make Scene.DefaultDrawDistance to be the max of the region size and the

user setting. Seems this parameter has many side effects.
0.8.0.3
Robert Adams 2014-02-23 21:56:37 -08:00
parent d6837f5dc7
commit 0f03c64a0c
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ namespace OpenSim.Region.Framework.Scenes
get {
if (RegionInfo != null)
{
m_defaultDrawDistance = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY);
float largestDimension = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY);
m_defaultDrawDistance = Math.Max(m_defaultDrawDistance, largestDimension);
}
return m_defaultDrawDistance;
}