Pass terrasync dir through to osgDB options.
Half of fix for TerraSync Models not being found.
This commit is contained in:
parent
0c8d84aad1
commit
1862688d27
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue