Local Weather: auto-enable 3D clouds and disable the checkbox.
This commit is contained in:
parent
eed433ce9f
commit
d394edb0a2
2 changed files with 1 additions and 2 deletions
|
@ -4756,6 +4756,7 @@ setprop(lwi~"ipoint-number",0);
|
|||
var updateMenu = func {
|
||||
var isEnabled = getprop("/nasal/local_weather/enabled");
|
||||
gui.menuEnable("local_weather", isEnabled);
|
||||
if (isEnabled) {setprop("/sim/rendering/clouds3d-enable", "true");}
|
||||
}
|
||||
|
||||
_setlistener("/nasal/local_weather/enabled", updateMenu);
|
||||
|
|
|
@ -174,8 +174,6 @@
|
|||
# If Local Weather is enabled, re-initialize with updated
|
||||
# initial tile and tile selection.
|
||||
setprop("/nasal/local_weather/enabled", "true");
|
||||
# Local Weather requires 3D clouds.
|
||||
setprop("/sim/rendering/clouds3d-enable", "true");
|
||||
|
||||
# Re-initialize local weather.
|
||||
settimer( func {local_weather.set_tile();}, 0.2);
|
||||
|
|
Loading…
Reference in a new issue