mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Set baking enabled mappings
This commit is contained in:
parent
b1bc899121
commit
aad0be2693
1 changed files with 5 additions and 3 deletions
|
@ -1224,9 +1224,11 @@ bool AssetServer::setBakingEnabled(const AssetPathList& paths, bool enabled) {
|
|||
auto bakedMapping = getBakeMapping(hash, bakedFilename);
|
||||
|
||||
if (enabled) {
|
||||
// TODO
|
||||
} else {
|
||||
// TODO
|
||||
removeBakedPathsForDeletedAsset(hash);
|
||||
setMapping(bakedMapping, hash);
|
||||
} else if (_fileMappings.value(bakedMapping) == hash) {
|
||||
deleteMappings({ bakedMapping });
|
||||
maybeBake(path, hash);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue