aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorUbitUmarov2019-02-05 01:45:04 +0000
committerUbitUmarov2019-02-05 01:45:04 +0000
commit175817fe55b387369ad9f461bddcbe1c8d65e986 (patch)
tree2801eba6d5fcc697748f8c7b403d572138b2edf9 /OpenSim/Region/Framework/Scenes/Scene.cs
parentprevent freswitch from messing global cert validation, more work is need on r... (diff)
downloadopensim-SC-175817fe55b387369ad9f461bddcbe1c8d65e986.zip
opensim-SC-175817fe55b387369ad9f461bddcbe1c8d65e986.tar.gz
opensim-SC-175817fe55b387369ad9f461bddcbe1c8d65e986.tar.bz2
opensim-SC-175817fe55b387369ad9f461bddcbe1c8d65e986.tar.xz
enforce prim size restrictions on physical state change; Place restrictions on ini values
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 58f3b61..785b4c3 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -951,18 +951,25 @@ namespace OpenSim.Region.Framework.Scenes
951 { 951 {
952 m_minNonphys = RegionInfo.NonphysPrimMin; 952 m_minNonphys = RegionInfo.NonphysPrimMin;
953 } 953 }
954 // don't allow nonsense values
955 if(m_minNonphys < 0.001f)
956 m_minNonphys = 0.001f;
954 957
955 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys); 958 m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", m_maxNonphys);
956 if (RegionInfo.NonphysPrimMax > 0) 959 if (RegionInfo.NonphysPrimMax > 0)
957 { 960 {
958 m_maxNonphys = RegionInfo.NonphysPrimMax; 961 m_maxNonphys = RegionInfo.NonphysPrimMax;
959 } 962 }
963 if (m_maxNonphys > 2048)
964 m_maxNonphys = 2048;
960 965
961 m_minPhys = startupConfig.GetFloat("PhysicalPrimMin", m_minPhys); 966 m_minPhys = startupConfig.GetFloat("PhysicalPrimMin", m_minPhys);
962 if (RegionInfo.PhysPrimMin > 0) 967 if (RegionInfo.PhysPrimMin > 0)
963 { 968 {
964 m_minPhys = RegionInfo.PhysPrimMin; 969 m_minPhys = RegionInfo.PhysPrimMin;
965 } 970 }
971 if(m_minPhys < 0.01f)
972 m_minPhys = 0.01f;
966 973
967 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", m_maxPhys); 974 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", m_maxPhys);
968 975
@@ -970,6 +977,8 @@ namespace OpenSim.Region.Framework.Scenes
970 { 977 {
971 m_maxPhys = RegionInfo.PhysPrimMax; 978 m_maxPhys = RegionInfo.PhysPrimMax;
972 } 979 }
980 if (m_maxPhys > 2048)
981 m_maxPhys = 2048;
973 982
974 m_linksetCapacity = startupConfig.GetInt("LinksetPrims", m_linksetCapacity); 983 m_linksetCapacity = startupConfig.GetInt("LinksetPrims", m_linksetCapacity);
975 if (RegionInfo.LinksetCapacity > 0) 984 if (RegionInfo.LinksetCapacity > 0)