mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Make Scene.DefaultDrawDistance to be the max of the region size and the
user setting. Seems this parameter has many side effects.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user