aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorRobert Adams2014-02-19 09:51:49 -0800
committerRobert Adams2014-02-19 09:51:49 -0800
commitc26f01ff8ceadab3e60e426746d60903b2ad5372 (patch)
tree9679e8bf9a3828d0af2994c9c5a1dd7c37449f10 /OpenSim/Region
parentRepair check for if in region position (I mean || is kinda like &&). (diff)
downloadopensim-SC_OLD-c26f01ff8ceadab3e60e426746d60903b2ad5372.zip
opensim-SC_OLD-c26f01ff8ceadab3e60e426746d60903b2ad5372.tar.gz
opensim-SC_OLD-c26f01ff8ceadab3e60e426746d60903b2ad5372.tar.bz2
opensim-SC_OLD-c26f01ff8ceadab3e60e426746d60903b2ad5372.tar.xz
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.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs9
1 files changed, 8 insertions, 1 deletions
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
213 protected float m_defaultDrawDistance = 255.0f; 213 protected float m_defaultDrawDistance = 255.0f;
214 public float DefaultDrawDistance 214 public float DefaultDrawDistance
215 { 215 {
216 get { return m_defaultDrawDistance; } 216 // get { return m_defaultDrawDistance; }
217 get {
218 if (RegionInfo != null)
219 {
220 m_defaultDrawDistance = Math.Max(RegionInfo.RegionSizeX, RegionInfo.RegionSizeY);
221 }
222 return m_defaultDrawDistance;
223 }
217 } 224 }
218 225
219 private List<string> m_AllowedViewers = new List<string>(); 226 private List<string> m_AllowedViewers = new List<string>();