]> git.mxchange.org Git - flightgear.git/commitdiff
also copy name & type to /sim/current-view
authormfranz <mfranz>
Fri, 9 Nov 2007 17:43:22 +0000 (17:43 +0000)
committermfranz <mfranz>
Fri, 9 Nov 2007 17:43:22 +0000 (17:43 +0000)
That's useful for animations, and we can't rely on numbers. And shouldn't.

src/Main/viewmgr.cxx

index c67c71914e49402ddab4655d3440882f5d21bac2..806d9451a45472b9935a5c3d0f4a772884cff199 100644 (file)
@@ -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",