diff options
author | Melanie Thielker | 2008-11-29 14:26:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-29 14:26:42 +0000 |
commit | b6fef0fdb8d7027769db7945ad4717841a59450e (patch) | |
tree | 22d2ab56a69d2f1c0913ede6d4268e9f8ea3284f /OpenSim/Region/Environment | |
parent | Start scripts in attachments only after a successful attach. Elimininate (diff) | |
download | opensim-SC_OLD-b6fef0fdb8d7027769db7945ad4717841a59450e.zip opensim-SC_OLD-b6fef0fdb8d7027769db7945ad4717841a59450e.tar.gz opensim-SC_OLD-b6fef0fdb8d7027769db7945ad4717841a59450e.tar.bz2 opensim-SC_OLD-b6fef0fdb8d7027769db7945ad4717841a59450e.tar.xz |
Add configuration values for scripted prim region crossing
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 03d79f1..92738a2 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -90,6 +90,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
90 | public float m_maxNonphys = 65536; | 90 | public float m_maxNonphys = 65536; |
91 | public float m_maxPhys = 10; | 91 | public float m_maxPhys = 10; |
92 | public bool m_clampPrimSize = false; | 92 | public bool m_clampPrimSize = false; |
93 | public bool m_trustBinaries = false; | ||
94 | public bool m_allowScriptCrossings = false; | ||
93 | 95 | ||
94 | public bool m_seeIntoRegionFromNeighbor; | 96 | public bool m_seeIntoRegionFromNeighbor; |
95 | public int MaxUndoCount = 5; | 97 | public int MaxUndoCount = 5; |
@@ -337,6 +339,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
337 | m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); | 339 | m_maxNonphys = startupConfig.GetFloat("NonPhysicalPrimMax", 65536.0f); |
338 | m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); | 340 | m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", 10.0f); |
339 | m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false); | 341 | m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", false); |
342 | m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", false); | ||
343 | m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossings", false); | ||
340 | m_dontPersistBefore = | 344 | m_dontPersistBefore = |
341 | startupConfig.GetLong("MinimumTimeBeforePersistenceConsidered", DEFAULT_MIN_TIME_FOR_PERSISTENCE); | 345 | startupConfig.GetLong("MinimumTimeBeforePersistenceConsidered", DEFAULT_MIN_TIME_FOR_PERSISTENCE); |
342 | m_dontPersistBefore *= 10000000; | 346 | m_dontPersistBefore *= 10000000; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs index 99ac722..6ebd675 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPartInventory.cs | |||
@@ -241,7 +241,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
241 | 241 | ||
242 | if (!m_part.ParentGroup.Scene.RegionInfo.RegionSettings.DisableScripts) | 242 | if (!m_part.ParentGroup.Scene.RegionInfo.RegionSettings.DisableScripts) |
243 | { | 243 | { |
244 | if (stateSource == 1) // Prim crossing | 244 | if (stateSource == 1 && // Prim crossing |
245 | m_part.ParentGroup.Scene.m_trustBinaries) | ||
245 | { | 246 | { |
246 | m_items[item.ItemID].PermsMask = 0; | 247 | m_items[item.ItemID].PermsMask = 0; |
247 | m_items[item.ItemID].PermsGranter = UUID.Zero; | 248 | m_items[item.ItemID].PermsGranter = UUID.Zero; |