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.
0.6.1-post-fixes
Melanie Thielker 2008-11-11 03:10:28 +00:00
parent 7af1afb6df
commit 89570e1637
2 changed files with 3 additions and 0 deletions

View File

@ -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");
}

View File

@ -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