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.avinationmerge
parent
1241cc50f1
commit
7b11a83c08
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue