Fix binary asset dependencies tracking when dependent asset gets loaded later on

#3951

Adds additional cache for dependencies tracking to update them when other asset gets loaded later on.
Remove critical-section from `LoadAssetTask` that was causing some deadlocks (data access is already atomic there).
This commit is contained in:
Wojtek Figat
2026-03-31 12:03:18 +02:00
parent 8b383d4dbe
commit c6204fc274
5 changed files with 67 additions and 3 deletions

View File

@@ -84,6 +84,11 @@ bool BinaryAsset::Init(AssetInitData& initData)
{
asset->_dependantAssets.Add(this);
}
else
{
// Dependency is not yet loaded to keep track this link to act when it's loaded
Content::onAssetDepend(this, e.First);
}
}
#endif