diff options
author | Diva Canto | 2011-12-29 12:18:22 -0800 |
---|---|---|
committer | Diva Canto | 2011-12-29 12:18:22 -0800 |
commit | b7560772697e4ca437b4b6c4b702d538266b086d (patch) | |
tree | 9b005feb13bafcc79fc9fe3b8aaf3a0deb6ef3e9 /OpenSim/Region | |
parent | HG: more adjustments for making HG Simian work. Added server_uri as new key o... (diff) | |
parent | Introduce a LightShare kill packet ans send it when needed. Currently only (diff) | |
download | opensim-SC_OLD-b7560772697e4ca437b4b6c4b702d538266b086d.zip opensim-SC_OLD-b7560772697e4ca437b4b6c4b702d538266b086d.tar.gz opensim-SC_OLD-b7560772697e4ca437b4b6c4b702d538266b086d.tar.bz2 opensim-SC_OLD-b7560772697e4ca437b4b6c4b702d538266b086d.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | 1 |
2 files changed, 13 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs index cabbd31..16cbbf5 100644 --- a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs +++ b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | |||
@@ -153,10 +153,18 @@ namespace OpenSim.Region.CoreModules.World.LightShare | |||
153 | 153 | ||
154 | public void SendProfileToClient(IClientAPI client, RegionLightShareData wl) | 154 | public void SendProfileToClient(IClientAPI client, RegionLightShareData wl) |
155 | { | 155 | { |
156 | if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid) | 156 | if (m_enableWindlight) |
157 | { | 157 | { |
158 | List<byte[]> param = compileWindlightSettings(wl); | 158 | if (m_scene.RegionInfo.WindlightSettings.valid) |
159 | client.SendGenericMessage("Windlight", param); | 159 | { |
160 | List<byte[]> param = compileWindlightSettings(wl); | ||
161 | client.SendGenericMessage("Windlight", param); | ||
162 | } | ||
163 | else | ||
164 | { | ||
165 | List<byte[]> param = new List<byte[]>(); | ||
166 | client.SendGenericMessage("WindlightReset", param); | ||
167 | } | ||
160 | } | 168 | } |
161 | } | 169 | } |
162 | 170 | ||
@@ -175,8 +183,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare | |||
175 | 183 | ||
176 | private void EventManager_OnSaveNewWindlightProfile() | 184 | private void EventManager_OnSaveNewWindlightProfile() |
177 | { | 185 | { |
178 | if (m_scene.RegionInfo.WindlightSettings.valid) | 186 | m_scene.ForEachRootClient(SendProfileToClient); |
179 | m_scene.ForEachRootClient(SendProfileToClient); | ||
180 | } | 187 | } |
181 | 188 | ||
182 | public void PostInitialise() | 189 | public void PostInitialise() |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs index cb0d765..77a784d 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LS_Api.cs | |||
@@ -486,6 +486,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
486 | m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false; | 486 | m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false; |
487 | if (m_host.ParentGroup.Scene.SimulationDataService != null) | 487 | if (m_host.ParentGroup.Scene.SimulationDataService != null) |
488 | m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID); | 488 | m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID); |
489 | m_host.ParentGroup.Scene.EventManager.TriggerOnSaveNewWindlightProfile(); | ||
489 | } | 490 | } |
490 | /// <summary> | 491 | /// <summary> |
491 | /// Set the current Windlight scene to a target avatar | 492 | /// Set the current Windlight scene to a target avatar |