From e23bf8d7d211656a8408fcb258e611ee52927fe8 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 10 Jun 2021 17:08:26 +0100 Subject: [PATCH] TerraSync: match API change Pass the scenery path suffixes here to terraSync explicitly, to avoid it needing to read the properties from a hard-coded path, which is inefficient. --- src/Scenery/tilemgr.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx index 8e7171132..0918a740e 100644 --- a/src/Scenery/tilemgr.cxx +++ b/src/Scenery/tilemgr.cxx @@ -224,6 +224,9 @@ void FGTileMgr::reinit() scenerySuffixes = {"Objects", "Terrain"}; // defaut values } + if (terraSync) { + terraSync->setSceneryPathSuffixes(scenerySuffixes); + } _options->setSceneryPathSuffixes(scenerySuffixes); if (state != Start)