From 6ce3f4cb25c67a32557e597ee85cf445c4f493b1 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sat, 25 Aug 2012 08:43:25 +0200 Subject: [PATCH] fgelev: Only request terrain for elevation queries. --- utils/fgelev/fgelev.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/fgelev/fgelev.cxx b/utils/fgelev/fgelev.cxx index a868d605f..c5468912b 100644 --- a/utils/fgelev/fgelev.cxx +++ b/utils/fgelev/fgelev.cxx @@ -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();