]> git.mxchange.org Git - flightgear.git/commitdiff
fgelev: Only request terrain for elevation queries.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 25 Aug 2012 06:43:25 +0000 (08:43 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 25 Aug 2012 06:47:22 +0000 (08:47 +0200)
utils/fgelev/fgelev.cxx

index a868d605f3bccf2c446738ec4fc57cc4de9fcc3e..c5468912bdd98aba23ad0bb63fdd78f522be083e 100644 (file)
@@ -112,10 +112,6 @@ main(int argc, char** argv)
                << "Probably FG_ROOT is not properly set.");
     }
 
-    /// dont need that here
-    props->getNode("sim/rendering/random-objects", true)->setBoolValue(false);
-    props->getNode("sim/rendering/random-vegetation", true)->setBoolValue(false);
-
     /// now set up the simgears required model stuff
 
     simgear::ResourceManager::instance()->addBasePath(fg_root, simgear::ResourceManager::PRIORITY_DEFAULT);
@@ -148,6 +144,10 @@ main(int argc, char** argv)
     options->setPluginStringData("SimGear::FG_ROOT", fg_root);
     // we do not need the builtin boundingvolumes
     options->setPluginStringData("SimGear::BOUNDINGVOLUMES", "OFF");
+    // And we only want terrain, no objects on top.
+    options->setPluginStringData("SimGear::FG_ONLY_TERRAIN", "ON");
+    props->getNode("sim/rendering/random-objects", true)->setBoolValue(false);
+    props->getNode("sim/rendering/random-vegetation", true)->setBoolValue(false);
 
     // Here, all arguments are processed
     arguments.reportRemainingOptionsAsUnrecognized();