diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 27f1f83..7000ce4 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -215,6 +215,7 @@ void FGTileMgr::reinit() _options->setPluginStringData("SimGear::PAGED_LOD_EXPIRY", std::to_string(tile_min_expiry)); string_list scenerySuffixes; + for (auto node : fgGetNode("/sim/rendering/", true)->getChildren("scenery-path-suffix")) { if (node->getBoolValue("enabled", true)) { scenerySuffixes.push_back(node->getStringValue("name")); @@ -226,6 +227,12 @@ void FGTileMgr::reinit() scenerySuffixes = {"Objects", "Terrain"}; // defaut values } + //zhongjin 自动下载卫星图像 + if ( fgGetNode("/sim/rendering/scenery-path-suffix",false)) { + scenerySuffixes.push_back("Orthophotos"); + } + + if (terraSync) { terraSync->setSceneryPathSuffixes(scenerySuffixes); }