varregion: make scene default draw distance to be the maximum size of the

region. This is a temp fix for the use of draw distance to compute child
regions. Eventually must use the draw distance from the viewer for the
computation.
0.8.0.3
Robert Adams 2014-02-19 09:51:49 -08:00
parent fc9930e420
commit c26f01ff8c
1 changed files with 8 additions and 1 deletions

View File

@ -213,7 +213,14 @@ namespace OpenSim.Region.Framework.Scenes
protected float m_defaultDrawDistance = 255.0f; protected float m_defaultDrawDistance = 255.0f;
public float DefaultDrawDistance public float DefaultDrawDistance
{ {
get { return m_defaultDrawDistance; } // get { return m_defaultDrawDistance; }
get {
if (RegionInfo != null)
{
m_defaultDrawDistance = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY);
}
return m_defaultDrawDistance;
}
} }
private List<string> m_AllowedViewers = new List<string>(); private List<string> m_AllowedViewers = new List<string>();