From: James Turner Date: Thu, 31 Jan 2013 16:51:06 +0000 (+0000) Subject: Set preview mode when using --fgviewer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ac696a960151416112d16ddbcc016a4f4a008a52;p=flightgear.git Set preview mode when using --fgviewer --- diff --git a/src/Viewer/fgviewer.cxx b/src/Viewer/fgviewer.cxx index 7b4a83088..757266926 100644 --- a/src/Viewer/fgviewer.cxx +++ b/src/Viewer/fgviewer.cxx @@ -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 loadedModel; loadedModel = osgDB::readNodeFiles(dataFiles, options);