Add handling of failedLastBake error in getAssetStatus

This commit is contained in:
Ryan Huffman 2017-09-01 10:37:28 -07:00
parent 7a68788c8c
commit 5ee33085a5

View file

@ -145,6 +145,14 @@ BakingStatus AssetServer::getAssetStatus(const AssetPath& path, const AssetHash&
auto jt = _fileMappings.find(bakedPath);
if (jt != _fileMappings.end()) {
if (jt->second == hash) {
bool loaded;
AssetMeta meta;
std::tie(loaded, meta) = readMetaFile(hash);
if (loaded && meta.failedLastBake) {
return Error;
}
return NotBaked;
} else {
return Baked;