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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user