mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +02:00
Update AssetServer to check for baking disabled on startup
This commit is contained in:
parent
0003a32701
commit
9a7497c9ec
1 changed files with 11 additions and 0 deletions
|
@ -228,6 +228,17 @@ bool AssetServer::needsToBeBaked(const AssetUtils::AssetPath& path, const AssetU
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString bakedFilename = bakedFilenameForAssetType(type);
|
||||||
|
auto bakedPath = HIDDEN_BAKED_CONTENT_FOLDER + assetHash + "/" + bakedFilename;
|
||||||
|
auto mappingIt = _fileMappings.find(bakedPath);
|
||||||
|
bool bakedMappingExists = mappingIt != _fileMappings.end();
|
||||||
|
|
||||||
|
// If the path is mapped to the original file's hash, baking has been disabled for this
|
||||||
|
// asset
|
||||||
|
if (bakedMappingExists && mappingIt->second == assetHash) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool loaded;
|
bool loaded;
|
||||||
AssetMeta meta;
|
AssetMeta meta;
|
||||||
std::tie(loaded, meta) = readMetaFile(assetHash);
|
std::tie(loaded, meta) = readMetaFile(assetHash);
|
||||||
|
|
Loading…
Reference in a new issue