Merge pull request #541 from aws-lumberyard-dev/mbalfour/lyn-3464

[LYN-3464] Vegetation unit tests intermittently failed due to AssetManager bug
This commit is contained in:
Mike Balfour
2021-05-04 11:50:49 -05:00
committed by GitHub
4 changed files with 176 additions and 9 deletions
@@ -239,8 +239,13 @@ namespace AZ
return;
}
CheckReady();
m_initComplete = true;
// *After* setting initComplete to true, check to see if the assets are already ready.
// This check needs to wait until after setting initComplete because if they *are* ready, we want the final call to
// RemoveWaitingAsset to trigger the OnAssetContainerReady/Canceled event. If we call CheckReady() *before* setting
// initComplete, if all the assets are ready, the event will never get triggered.
CheckReady();
}
bool AssetContainer::IsReady() const