1
0
Fork 0

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.
This commit is contained in:
James Turner 2021-06-10 17:08:26 +01:00
parent 72ec70f275
commit e23bf8d7d2

View file

@ -224,6 +224,9 @@ void FGTileMgr::reinit()
scenerySuffixes = {"Objects", "Terrain"}; // defaut values scenerySuffixes = {"Objects", "Terrain"}; // defaut values
} }
if (terraSync) {
terraSync->setSceneryPathSuffixes(scenerySuffixes);
}
_options->setSceneryPathSuffixes(scenerySuffixes); _options->setSceneryPathSuffixes(scenerySuffixes);
if (state != Start) if (state != Start)