From: mfranz Date: Fri, 9 Nov 2007 17:43:22 +0000 (+0000) Subject: also copy name & type to /sim/current-view X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5b76cb5409ff6ffdcf4bca95e506956cd1e4998f;p=flightgear.git also copy name & type to /sim/current-view That's useful for animations, and we can't rely on numbers. And shouldn't. --- diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index c67c71914..806d9451a 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -293,6 +293,8 @@ void FGViewMgr::copyToCurrent() { SGPropertyNode *n = config_list[current]; + fgSetString("/sim/current-view/name", n->getStringValue("name")); + fgSetString("/sim/current-view/type", n->getStringValue("type")); // copy certain view config data for default values fgSetDouble("/sim/current-view/config/heading-offset-deg",