Wait for asset load in MeshDataCache
This commit is contained in:
@@ -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][];
|
||||
|
||||
Reference in New Issue
Block a user