]> git.mxchange.org Git - flightgear.git/commitdiff
Set preview mode when using --fgviewer
authorJames Turner <zakalawe@mac.com>
Thu, 31 Jan 2013 16:51:06 +0000 (16:51 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 31 Jan 2013 16:51:06 +0000 (16:51 +0000)
src/Viewer/fgviewer.cxx

index 7b4a830882f2389edfd46bf6194aacd5b05d317a..757266926e1aadeeb09171414e698a888a79ffc8 100644 (file)
@@ -209,7 +209,8 @@ fgviewerMain(int argc, char** argv)
     options->getDatabasePathList() = filePathList;
     options->setMaterialLib(globals->get_matlib());
     options->setPropertyNode(globals->get_props());
-
+    options->setPluginStringData("SimGear::PREVIEW", "ON");
+    
     // read the scene from the list of file specified command line args.
     osg::ref_ptr<osg::Node> loadedModel;
     loadedModel = osgDB::readNodeFiles(dataFiles, options);