TerraSync: wait on Models as well
Avoid starting tile load until Models is done sync-ing, since this causes may missing file errors.
This commit is contained in:
parent
c63594acec
commit
ce65b84c20
1 changed files with 6 additions and 0 deletions
|
@ -625,6 +625,12 @@ bool FGTileMgr::isTileDirSyncing(const std::string& tileFileName) const
|
|||
return false;
|
||||
}
|
||||
|
||||
// if Models is syncing, also wait for it, since otherwise
|
||||
// we get load errors
|
||||
if (terraSync->isDataDirPending("Models")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string nameWithoutExtension = tileFileName.substr(0, tileFileName.size() - 4);
|
||||
long int bucketIndex = simgear::strutils::to_int(nameWithoutExtension);
|
||||
SGBucket bucket(bucketIndex);
|
||||
|
|
Loading…
Reference in a new issue