- remove menu greying out (there's no such entry any more)
- start dynamic view at fdm-initialized to avoid nasal errors (math.cos)
This commit is contained in:
parent
5df46f3e5c
commit
2d37f6c60b
1 changed files with 2 additions and 2 deletions
|
@ -376,7 +376,7 @@ var loop_id = 0;
|
|||
|
||||
# Initialization.
|
||||
#
|
||||
_setlistener("/sim/signals/nasal-dir-initialized", func {
|
||||
_setlistener("/sim/signals/fdm-initialized", func {
|
||||
# disable menu entry and return for inappropriate FDMs (see Main/fg_init.cxx)
|
||||
var fdms = {
|
||||
acms:0, ada:0, balloon:0, external:0,
|
||||
|
@ -385,7 +385,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
};
|
||||
var fdm = getprop("/sim/flight-model");
|
||||
if (!contains(fdms, fdm) or !fdms[fdm])
|
||||
return gui.menuEnable("dynamic-view", 0);
|
||||
return;
|
||||
|
||||
enabled = props.globals.getNode("/sim").getChildren("view");
|
||||
forindex (var i; enabled)
|
||||
|
|
Loading…
Reference in a new issue