diff options
author | Melanie | 2011-12-24 16:18:01 +0100 |
---|---|---|
committer | Melanie | 2011-12-28 09:24:02 +0000 |
commit | 5b52440e61648a98d418cff11b588352a3cfff67 (patch) | |
tree | 45e8d5c137be4669e323dbd40d3a9e4153287861 /OpenSim/Region/CoreModules/LightShare | |
parent | Add Copy task to Prebuild.exe (vsxxxx targets) (diff) | |
download | opensim-SC_OLD-5b52440e61648a98d418cff11b588352a3cfff67.zip opensim-SC_OLD-5b52440e61648a98d418cff11b588352a3cfff67.tar.gz opensim-SC_OLD-5b52440e61648a98d418cff11b588352a3cfff67.tar.bz2 opensim-SC_OLD-5b52440e61648a98d418cff11b588352a3cfff67.tar.xz |
Introduce a LightShare kill packet ans send it when needed. Currently only
understood by AVN v0.3
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | 17 |
1 files changed, 12 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() |