aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-06 09:38:14 +0000
committerTeravus Ovares2008-02-06 09:38:14 +0000
commit9d6ea497e27bb2c93211fe2899e609ea9ea18623 (patch)
tree930777aa2d9cf39c8ba54dc81d89771c21b969d4 /OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
parentCleaned up some unreachable code warnings. (diff)
downloadopensim-SC_OLD-9d6ea497e27bb2c93211fe2899e609ea9ea18623.zip
opensim-SC_OLD-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.gz
opensim-SC_OLD-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.bz2
opensim-SC_OLD-9d6ea497e27bb2c93211fe2899e609ea9ea18623.tar.xz
* Added the ability to start and stop all scripts in the simulator using the debug tab on the estate tools. This along with the disable physics via the debug tab are persistant across reboots. That means that if it's disabled when you shut down the simulator, the simulator will come up again when you start it up without loading the scripts. Turning them back on is as simple as unchecking 'disable scripts' in the debug tab of the estate tools.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
index 1e99079..6bd0575 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.Inventory.cs
@@ -88,10 +88,14 @@ namespace OpenSim.Region.Environment.Scenes
88 /// </summary> 88 /// </summary>
89 public void StartScripts() 89 public void StartScripts()
90 { 90 {
91 foreach (SceneObjectPart part in m_parts.Values) 91 // Don't start scripts if they're turned off in the region!
92 if (!((m_scene.RegionInfo.EstateSettings.regionFlags & Simulator.RegionFlags.SkipScripts) == Simulator.RegionFlags.SkipScripts))
92 { 93 {
93 part.StartScripts(); 94 foreach (SceneObjectPart part in m_parts.Values)
94 } 95 {
96 part.StartScripts();
97 }
98 }
95 } 99 }
96 100
97 public void StopScripts() 101 public void StopScripts()