mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
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.
This commit is contained in:
@@ -148,7 +148,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||
public void SendProfileToClient(ScenePresence presence)
|
||||
{
|
||||
IClientAPI client = presence.ControllingClient;
|
||||
if (m_enableWindlight)
|
||||
if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid)
|
||||
{
|
||||
if (presence.IsChildAgent == false)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||
public void SendProfileToClient(ScenePresence presence, RegionLightShareData wl)
|
||||
{
|
||||
IClientAPI client = presence.ControllingClient;
|
||||
if (m_enableWindlight)
|
||||
if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid)
|
||||
{
|
||||
if (presence.IsChildAgent == false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user