mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 20:42:56 +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);
|
auto bakedMapping = getBakeMapping(hash, bakedFilename);
|
||||||
|
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
// TODO
|
removeBakedPathsForDeletedAsset(hash);
|
||||||
} else {
|
setMapping(bakedMapping, hash);
|
||||||
// TODO
|
} else if (_fileMappings.value(bakedMapping) == hash) {
|
||||||
|
deleteMappings({ bakedMapping });
|
||||||
|
maybeBake(path, hash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue