]> git.mxchange.org Git - flightgear.git/commitdiff
Pass terrasync dir through to osgDB options.
authorJames Turner <zakalawe@mac.com>
Thu, 29 Aug 2013 21:12:34 +0000 (22:12 +0100)
committerJames Turner <zakalawe@mac.com>
Thu, 29 Aug 2013 21:12:34 +0000 (22:12 +0100)
Half of fix for TerraSync Models not being found.

src/Scenery/tilemgr.cxx

index 298b05c50d20bcf5a081ce1356cef564f1f14248..d26be6928d50e63d2ebb43d7af9811aac6074cb4 100644 (file)
@@ -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);