Fix rendering bug: no precipitation
Synchronize /sim/rendering/precipitation-enable to /sim/rendering/precipitation-gui-enable and /sim/rendering/precipitation-aircraft-enable on startup
This commit is contained in:
parent
8319a0fe05
commit
3d3fa8131e
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
var precip_ac = getprop(p ~ "aircraft-enable");
|
||||
props.globals.getNode(p ~ "enable").setAttribute("userarchive", 0); # TODO remove later
|
||||
var set_precip = func setprop(p ~ "enable", precip_gui and precip_ac);
|
||||
setlistener(p ~ "gui-enable", func(n) set_precip(precip_gui = n.getValue()));
|
||||
setlistener(p ~ "aircraft-enable", func(n) set_precip(precip_ac = n.getValue()));
|
||||
setlistener(p ~ "gui-enable", func(n) set_precip(precip_gui = n.getValue()),1);
|
||||
setlistener(p ~ "aircraft-enable", func(n) set_precip(precip_ac = n.getValue()),1);
|
||||
|
||||
# the autovisibility feature of the menubar
|
||||
# automatically show the menubar if the mouse is at the upper edge of the window
|
||||
|
|
Loading…
Add table
Reference in a new issue