When LightShare is enabled, the standard day cycle is bypassed and replaced by
midday defaults when no specific LightShare profile is set. This prevents LightShare info being send out when the region has no LightShare profile, allowing normal day/night cycles to happen.viewer-2-initial-appearance
parent
c25f84e31c
commit
4ab9d37a8e
|
@ -817,6 +817,7 @@ namespace OpenSim.Data.MySQL
|
||||||
nWP.cloudScrollY = Convert.ToSingle(result["cloud_scroll_y"]);
|
nWP.cloudScrollY = Convert.ToSingle(result["cloud_scroll_y"]);
|
||||||
nWP.cloudScrollYLock = Convert.ToBoolean(result["cloud_scroll_y_lock"]);
|
nWP.cloudScrollYLock = Convert.ToBoolean(result["cloud_scroll_y_lock"]);
|
||||||
nWP.drawClassicClouds = Convert.ToBoolean(result["draw_classic_clouds"]);
|
nWP.drawClassicClouds = Convert.ToBoolean(result["draw_classic_clouds"]);
|
||||||
|
nWP.valid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
public class RegionLightShareData : ICloneable
|
public class RegionLightShareData : ICloneable
|
||||||
{
|
{
|
||||||
|
public bool valid = false;
|
||||||
public UUID regionID = UUID.Zero;
|
public UUID regionID = UUID.Zero;
|
||||||
public Vector3 waterColor = new Vector3(4.0f,38.0f,64.0f);
|
public Vector3 waterColor = new Vector3(4.0f,38.0f,64.0f);
|
||||||
public float waterFogDensityExponent = 4.0f;
|
public float waterFogDensityExponent = 4.0f;
|
||||||
|
|
|
@ -194,7 +194,8 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||||
}
|
}
|
||||||
private void EventManager_OnSaveNewWindlightProfile()
|
private void EventManager_OnSaveNewWindlightProfile()
|
||||||
{
|
{
|
||||||
m_scene.ForEachScenePresence(SendProfileToClient);
|
if (m_scene.RegionInfo.WindlightSettings.valid)
|
||||||
|
m_scene.ForEachScenePresence(SendProfileToClient);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void PostInitialise()
|
public void PostInitialise()
|
||||||
|
|
|
@ -455,6 +455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (LightShareModule.EnableWindlight)
|
if (LightShareModule.EnableWindlight)
|
||||||
{
|
{
|
||||||
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
||||||
|
wl.valid = true;
|
||||||
m_host.ParentGroup.Scene.StoreWindlightProfile(wl);
|
m_host.ParentGroup.Scene.StoreWindlightProfile(wl);
|
||||||
success = 1;
|
success = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue