1
0
Fork 0

Pass terrasync dir through to osgDB options.

Half of fix for TerraSync Models not being found.
This commit is contained in:
James Turner 2013-08-29 22:12:34 +01:00
parent 0c8d84aad1
commit 1862688d27

View file

@ -92,6 +92,11 @@ void FGTileMgr::init() {
fp.clear(); fp.clear();
std::copy(sc.begin(), sc.end(), back_inserter(fp)); std::copy(sc.begin(), sc.end(), back_inserter(fp));
_options->setPluginStringData("SimGear::FG_ROOT", globals->get_fg_root()); _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()) if (!_disableNasalHooks->getBoolValue())
_options->setModelData(new FGNasalModelDataProxy); _options->setModelData(new FGNasalModelDataProxy);