mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
Merge pull request #12467 from Atlante45/feat/backups-integration
Ignore baked assets in backups
This commit is contained in:
commit
07bbb33777
1 changed files with 7 additions and 1 deletions
|
@ -394,9 +394,15 @@ void AssetsBackupHandler::refreshMappings() {
|
|||
QObject::connect(request, &GetAllMappingsRequest::finished, this, [this](GetAllMappingsRequest* request) {
|
||||
if (request->getError() == MappingRequest::NoError) {
|
||||
const auto& mappings = request->getMappings();
|
||||
|
||||
// Clear existing mappings
|
||||
_currentMappings.clear();
|
||||
|
||||
// Set new mapping, but ignore baked assets
|
||||
for (const auto& mapping : mappings) {
|
||||
_currentMappings.insert({ mapping.first, mapping.second.hash });
|
||||
if (!mapping.first.startsWith(AssetUtils::HIDDEN_BAKED_CONTENT_FOLDER)) {
|
||||
_currentMappings.insert({ mapping.first, mapping.second.hash });
|
||||
}
|
||||
}
|
||||
_lastMappingsRefresh = usecTimestampNow();
|
||||
|
||||
|
|
Loading…
Reference in a new issue