]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.cxx
Fix iterator const-ness.
[flightgear.git] / src / Main / globals.cxx
index a93c23836af221a1cf6642b5cb20f7476d719afb..796b18cd8f66d1ef35085ca9f8b738efd2534056 100644 (file)
@@ -353,6 +353,11 @@ void FGGlobals::append_fg_scenery (const std::string &paths, bool secure)
         continue;
       }
 
+      // tell the ResouceManager about the scenery path
+      // needed to load Models from this scenery path
+      simgear::ResourceManager::instance()->addBasePath(abspath.str(),
+        simgear::ResourceManager::PRIORITY_DEFAULT);
+
         simgear::Dir dir(abspath);
         SGPath terrainDir(dir.file("Terrain"));
         SGPath objectsDir(dir.file("Objects"));