mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user