Minor fix

This commit is contained in:
Wojciech Figat
2023-01-20 11:48:53 +01:00
parent a7bccae5d3
commit 31e27e84a9

View File

@@ -313,9 +313,7 @@ namespace FlaxEditor.Windows.Assets
/// </summary>
public void RefreshAsset()
{
if (_asset == null)
return;
if (!_asset.IsLoaded)
if (_asset == null || _asset.WaitForLoaded())
return;
OnAssetLoaded();