mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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.
This commit is contained in:
@@ -213,7 +213,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
protected float m_defaultDrawDistance = 255.0f;
|
||||
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>();
|
||||
|
||||
Reference in New Issue
Block a user