From c26f01ff8ceadab3e60e426746d60903b2ad5372 Mon Sep 17 00:00:00 2001 From: Robert Adams Date: Wed, 19 Feb 2014 09:51:49 -0800 Subject: 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. --- OpenSim/Region/Framework/Scenes/Scene.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index ecf1753..676c000 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -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 m_AllowedViewers = new List(); -- cgit v1.1