From 2d37f6c60bde17bba78262f26b891392455ec4a9 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 18 Dec 2008 13:05:56 +0000 Subject: [PATCH] - remove menu greying out (there's no such entry any more) - start dynamic view at fdm-initialized to avoid nasal errors (math.cos) --- Nasal/dynamic_view.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/dynamic_view.nas b/Nasal/dynamic_view.nas index fd080c221..b7b33fddc 100644 --- a/Nasal/dynamic_view.nas +++ b/Nasal/dynamic_view.nas @@ -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)