Wait for asset load in MeshDataCache

This commit is contained in:
Wojtek Figat
2023-02-05 13:02:27 +01:00
parent ea153d4cf6
commit ac45bbe53e

View File

@@ -106,9 +106,9 @@ namespace FlaxEngine.Utilities
try
{
if (!_model)
{
return;
}
if (_model.WaitForLoaded())
throw new Exception("WaitForLoaded failed");
var lods = _model.LODs;
_meshDatas = new MeshData[lods.Length][];