diff options
author | Melanie | 2010-11-03 02:31:43 +0000 |
---|---|---|
committer | Melanie | 2010-11-03 02:31:43 +0000 |
commit | 6c3b7617b0356f093ef2730f1c517d6228997984 (patch) | |
tree | dfe891e7969aca22c0480877988ff3a8ad3d7d77 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |
parent | When LightShare is enabled, the standard day cycle is bypassed and replaced by (diff) | |
download | opensim-SC-6c3b7617b0356f093ef2730f1c517d6228997984.zip opensim-SC-6c3b7617b0356f093ef2730f1c517d6228997984.tar.gz opensim-SC-6c3b7617b0356f093ef2730f1c517d6228997984.tar.bz2 opensim-SC-6c3b7617b0356f093ef2730f1c517d6228997984.tar.xz |
Add lsClearWindlightScene() to the lightshare module to remove WL settings
from a region and allow normal day cycles to be reestablished
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs index 24a93c5..645566e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |||
@@ -466,6 +466,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
466 | } | 466 | } |
467 | return success; | 467 | return success; |
468 | } | 468 | } |
469 | public void lsClearWindlightScene() | ||
470 | { | ||
471 | if (!m_LSFunctionsEnabled) | ||
472 | { | ||
473 | LSShoutError("LightShare functions are not enabled."); | ||
474 | return; | ||
475 | } | ||
476 | if (!World.RegionInfo.EstateSettings.IsEstateManager(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | ||
477 | { | ||
478 | LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); | ||
479 | return; | ||
480 | } | ||
481 | |||
482 | m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false; | ||
483 | if (m_host.ParentGroup.Scene.SimulationDataService != null) | ||
484 | m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID); | ||
485 | } | ||
469 | /// <summary> | 486 | /// <summary> |
470 | /// Set the current Windlight scene to a target avatar | 487 | /// Set the current Windlight scene to a target avatar |
471 | /// </summary> | 488 | /// </summary> |