mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
Add handling of failedLastBake error in getAssetStatus
This commit is contained in:
parent
7a68788c8c
commit
5ee33085a5
1 changed files with 8 additions and 0 deletions
|
@ -145,6 +145,14 @@ BakingStatus AssetServer::getAssetStatus(const AssetPath& path, const AssetHash&
|
||||||
auto jt = _fileMappings.find(bakedPath);
|
auto jt = _fileMappings.find(bakedPath);
|
||||||
if (jt != _fileMappings.end()) {
|
if (jt != _fileMappings.end()) {
|
||||||
if (jt->second == hash) {
|
if (jt->second == hash) {
|
||||||
|
bool loaded;
|
||||||
|
AssetMeta meta;
|
||||||
|
|
||||||
|
std::tie(loaded, meta) = readMetaFile(hash);
|
||||||
|
if (loaded && meta.failedLastBake) {
|
||||||
|
return Error;
|
||||||
|
}
|
||||||
|
|
||||||
return NotBaked;
|
return NotBaked;
|
||||||
} else {
|
} else {
|
||||||
return Baked;
|
return Baked;
|
||||||
|
|
Loading…
Reference in a new issue