From 89570e16376d1b6c79cec0b6ad013ec51e93053d Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 11 Nov 2008 03:10:28 +0000 Subject: Add ClampPrimSize option to ensure no prim can exceed the set size. This will allow people who don't want megaprims in their sim to prevent them from being created. Any prim rezzed or pulled across the border will be clamped to the size specified in OpenSim.ini if this option is set. --- OpenSim/Region/Environment/Scenes/Scene.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index f686a9f..68fac59 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -81,6 +81,7 @@ namespace OpenSim.Region.Environment.Scenes public bool m_physicalPrim; public float m_maxNonphys = 65536; public float m_maxPhys = 10; + public bool m_clampPrimSize = false; public bool m_seeIntoRegionFromNeighbor; public int MaxUndoCount = 5; @@ -326,6 +327,7 @@ namespace OpenSim.Region.Environment.Scenes IConfig startupConfig = m_config.Configs["Startup"]; m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); + m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false); m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "DotNetEngine"); } -- cgit v1.1