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:
parent
eaba85f3bb
commit
c83a76d585
1 changed files with 4 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue