Add content deprecation system that auto-saves assets in Editor that use old data format

This commit is contained in:
Wojtek Figat
2025-01-20 23:46:49 +01:00
parent 1497acef58
commit 8a7ceef288
67 changed files with 751 additions and 427 deletions

View File

@@ -1156,19 +1156,14 @@ void Content::tryCallOnLoaded(Asset* asset)
void Content::onAssetLoaded(Asset* asset)
{
// This is called by the asset on loading end
ASSERT(asset && asset->IsLoaded());
ScopeLock locker(LoadedAssetsToInvokeLocker);
LoadedAssetsToInvoke.Add(asset);
}
void Content::onAssetUnload(Asset* asset)
{
// This is called by the asset on unloading
ScopeLock locker(AssetsLocker);
Assets.Remove(asset->GetID());
UnloadQueue.Remove(asset);
LoadedAssetsToInvoke.Remove(asset);