1
0
Fork 0

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:
Torsten Dreyer 2011-03-14 20:51:56 +01:00
parent 8319a0fe05
commit 3d3fa8131e

View file

@ -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