don't save view-enabled state of nameless views to aircraft config file
(the view may have been removed from the *-set.xml file)
This commit is contained in:
parent
47b4d2f98e
commit
cce72f08a9
1 changed files with 2 additions and 0 deletions
|
@ -467,6 +467,8 @@ _setlistener("/sim/signals/fdm-initialized", func {
|
|||
die("\n***\n*\n* Illegal use of reserved view index "
|
||||
~ index ~ ". Use indices >= 100!\n*\n***");
|
||||
} elsif (index >= 100 and index < 200) {
|
||||
if (v.getNode("name") == nil)
|
||||
continue;
|
||||
var e = v.getNode("enabled");
|
||||
if (e != nil) {
|
||||
aircraft.data.add(e);
|
||||
|
|
Loading…
Reference in a new issue