X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fglobals.cxx;h=796b18cd8f66d1ef35085ca9f8b738efd2534056;hb=6fc24034495c8a9932600e366615d500f1a5a66a;hp=a93c23836af221a1cf6642b5cb20f7476d719afb;hpb=02ff85460362a9b78cd49dfa1583fd164f9e093d;p=flightgear.git diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index a93c23836..796b18cd8 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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"));