From 89570e16376d1b6c79cec0b6ad013ec51e93053d Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 11 Nov 2008 03:10:28 +0000 Subject: [PATCH] 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 ++ bin/OpenSim.ini.example | 1 + 2 files changed, 3 insertions(+) diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index f686a9f9f9..68fac590b5 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"); } diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 369f940785..6b3cb94804 100644 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -37,6 +37,7 @@ TextureOnMapTile = false ; Maximum total size, and maximum size where a prim can be physical NonPhysicalPrimMax = 256 PhysicalPrimMax = 10 +ClampPrimSize = false ; ## ; ## STORAGE