From 8ae7dc628b2681b02c43a5acd1e1bdf4f33b1f3e Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 20 Jul 2008 15:19:26 +0000 Subject: Make the max sizes of physical and nonphysical prims configurable in OpenSim.ini Defaulted to 65536 and 10, respectively --- OpenSim/Region/Environment/Scenes/Scene.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 0ab729d..f602e9f 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -88,6 +88,8 @@ namespace OpenSim.Region.Environment.Scenes /// Are we applying physics to any of the prims in this scene? /// public bool m_physicalPrim; + public float m_maxNonphys = 65536; + public float m_maxPhys = 10; public bool m_seeIntoRegionFromNeighbor; public int MaxUndoCount = 5; @@ -308,6 +310,18 @@ namespace OpenSim.Region.Environment.Scenes m_simulatorVersion = simulatorVersion + " ChilTasks:" + m_seeIntoRegionFromNeighbor.ToString() + " PhysPrim:" + m_physicalPrim.ToString(); + + try + { + IConfig startupConfig = m_config.Configs["Startup"]; + m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); + m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); + } + catch (Exception) + { + m_log.Warn("Failed to load StartupConfig"); + } + } #endregion @@ -1146,7 +1160,7 @@ namespace OpenSim.Region.Environment.Scenes } catch (Exception) { - m_log.Warn("Failed to load StarupConfg"); + m_log.Warn("Failed to load StartupConfig"); } if (drawPrimVolume) -- cgit v1.1