1
0
Fork 0

disable top bar only if /sim/model/geometry/square/top is unset. Put this

into your ~/.fgfsrc if you want complete squares (yes, 0 is on :-).

  --prop:sim/model/geometry/square/top=0
This commit is contained in:
mfranz 2007-12-07 11:49:55 +00:00
parent eaba85f3bb
commit c83a76d585

View file

@ -112,7 +112,10 @@ var loop = func(id) {
var loopid = 0;
settimer(func {
props.globals.getNode("/sim/model/geometry/square/top", 1).setBoolValue(1);
var top = props.globals.getNode("/sim/model/geometry/square/top", 1);
if (top.getType() == "NONE")
top.setBoolValue(1); # remove top bar unless otherwise specified
setlistener("/sim/rendering/glide-slope-tunnel", func(n) {
loopid += 1;
if (n.getValue()) {