Don't send a windlight profile to clients if windlight is not set for

that region. This should restore normal day and night cycles for
regions without WL settings.
0.7.1-dev
Melanie 2011-03-21 05:52:29 +01:00
parent f4a30f3a23
commit fb890e543f
1 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
public void SendProfileToClient(ScenePresence presence) public void SendProfileToClient(ScenePresence presence)
{ {
IClientAPI client = presence.ControllingClient; IClientAPI client = presence.ControllingClient;
if (m_enableWindlight) if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid)
{ {
if (presence.IsChildAgent == false) if (presence.IsChildAgent == false)
{ {
@ -165,7 +165,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
public void SendProfileToClient(ScenePresence presence, RegionLightShareData wl) public void SendProfileToClient(ScenePresence presence, RegionLightShareData wl)
{ {
IClientAPI client = presence.ControllingClient; IClientAPI client = presence.ControllingClient;
if (m_enableWindlight) if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid)
{ {
if (presence.IsChildAgent == false) if (presence.IsChildAgent == false)
{ {