From e0878864e869889b30f6df7b92e56a4b03a8a4f3 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 12 Jul 2016 15:50:05 +0100 Subject: [PATCH] work around missing information on child creation, hidding its effects with reduced view range in culling option is on --- OpenSim/Region/Framework/Scenes/Scene.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 3c5630ea98..f2a0c32016 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -290,9 +290,10 @@ namespace OpenSim.Region.Framework.Scenes public int ChildTerseUpdatePeriod { get; set; } protected float m_defaultDrawDistance = 255f; + protected float m_defaultCullingDrawDistance = 16f; public float DefaultDrawDistance { - get { return m_defaultDrawDistance; } + get { return ObjectsCullingByDistance?m_defaultCullingDrawDistance:m_defaultDrawDistance; } } protected float m_maxDrawDistance = 512.0f;