From: James Turner Date: Thu, 29 Aug 2013 21:12:34 +0000 (+0100) Subject: Pass terrasync dir through to osgDB options. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1862688d27433278fea7f79010a4addc9fdb467b;p=flightgear.git Pass terrasync dir through to osgDB options. Half of fix for TerraSync Models not being found. --- diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 298b05c50..d26be6928 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -92,6 +92,11 @@ void FGTileMgr::init() { fp.clear(); std::copy(sc.begin(), sc.end(), back_inserter(fp)); _options->setPluginStringData("SimGear::FG_ROOT", globals->get_fg_root()); + + if (globals->get_subsystem("terrasync")) { + _options->setPluginStringData("SimGear::TERRASYNC_ROOT", fgGetString("/sim/terrasync/scenery-dir")); + } + if (!_disableNasalHooks->getBoolValue()) _options->setModelData(new FGNasalModelDataProxy);