aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie Thielker2009-01-02 17:41:12 +0000
committerMelanie Thielker2009-01-02 17:41:12 +0000
commit0138fdc5fddbe30924484686716465984e8f59c2 (patch)
tree3d734b2f626db149b14d945b424ece36e654673a /OpenSim/Region
parentUse only one (static) (de-)serializer for (de-)serializing SOPs. (diff)
downloadopensim-SC-0138fdc5fddbe30924484686716465984e8f59c2.zip
opensim-SC-0138fdc5fddbe30924484686716465984e8f59c2.tar.gz
opensim-SC-0138fdc5fddbe30924484686716465984e8f59c2.tar.bz2
opensim-SC-0138fdc5fddbe30924484686716465984e8f59c2.tar.xz
Allow some values that are set in OpenSim.ini to be set from region config
XML as well.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs20
2 files changed, 21 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index b3ca651..2ef3308 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -341,7 +341,7 @@ namespace OpenSim
341 if (cmdparams[1].StartsWith("/") || cmdparams[1].StartsWith("\\") || cmdparams[1].StartsWith("..")) 341 if (cmdparams[1].StartsWith("/") || cmdparams[1].StartsWith("\\") || cmdparams[1].StartsWith(".."))
342 regionFile = cmdparams[1]; 342 regionFile = cmdparams[1];
343 343
344 CreateRegion(new RegionInfo(cmdparams[0], regionFile, false), true); 344 CreateRegion(new RegionInfo(cmdparams[0], regionFile, false, ConfigSource.Source), true);
345 break; 345 break;
346 346
347 case "remove-region": 347 case "remove-region":
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 13b9169..f652e21 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -370,10 +370,25 @@ namespace OpenSim.Region.Environment.Scenes
370 370
371 try 371 try
372 { 372 {
373 // Region config overrides global config
374 //
373 IConfig startupConfig = m_config.Configs["Startup"]; 375 IConfig startupConfig = m_config.Configs["Startup"];
374 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); 376 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f);
377 if (RegionInfo.NonphysPrimMax > 0)
378 m_maxNonphys = RegionInfo.NonphysPrimMax;
379
375 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); 380 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f);
381
382 if (RegionInfo.PhysPrimMax > 0)
383 m_maxPhys = RegionInfo.PhysPrimMax;
384
385 // Here, if clamping is requested in either global or
386 // local config, it will be used
387 //
376 m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false); 388 m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false);
389 if (RegionInfo.ClampPrimSize)
390 m_clampPrimSize = true;
391
377 m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", false); 392 m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", false);
378 m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", false); 393 m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", false);
379 m_dontPersistBefore = 394 m_dontPersistBefore =
@@ -3290,6 +3305,11 @@ namespace OpenSim.Region.Environment.Scenes
3290 3305
3291 public void SetObjectCapacity(int objects) 3306 public void SetObjectCapacity(int objects)
3292 { 3307 {
3308 // Region specific config overrides global
3309 //
3310 if (RegionInfo.ObjectCapacity != 0)
3311 objects = RegionInfo.ObjectCapacity;
3312
3293 if (m_statsReporter != null) 3313 if (m_statsReporter != null)
3294 { 3314 {
3295 m_statsReporter.SetObjectCapacity(objects); 3315 m_statsReporter.SetObjectCapacity(objects);