From f71624e170dc5a6d21fab63f99ddc79f30c8aeea Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Wed, 14 Aug 2019 00:25:16 +0100 Subject: [PATCH] src/Viewer/viewmgr.cxx: allow aircraft to set initial view number. E.g. fgaddon/Aircraft/Icaro_MRX13/Icaro_Laminar_13_MRX-set.xml sets /sim/current-view/view-number to 9. It seems that recent View changes broke this, but this fix is in unchanged code. --- src/Viewer/viewmgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Viewer/viewmgr.cxx b/src/Viewer/viewmgr.cxx index d41a21274..7f8fa0d95 100644 --- a/src/Viewer/viewmgr.cxx +++ b/src/Viewer/viewmgr.cxx @@ -39,9 +39,9 @@ // Constructor FGViewMgr::FGViewMgr( void ) : inited(false), - config_list(fgGetNode("/sim", true)->getChildren("view")), - current(0) + config_list(fgGetNode("/sim", true)->getChildren("view")) { + current = fgGetNode("/sim/current-view/view-number")->getIntValue(); } // Destructor