From 44ef3fa6b44ec8b91e927fc53d56540d2152881b Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 14 Nov 2022 13:50:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Scenery/tilemgr.cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Scenery/tilemgr.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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); }