Fix freeze when prefab ID is empty.

This commit is contained in:
Menotdan
2023-12-10 18:12:41 -05:00
parent 306dd43b18
commit fe19ffddd9

View File

@@ -31,6 +31,11 @@ public class ModelPrefabEditor : GenericEditor
_prefabId = modelPrefab.PrefabID;
while (true)
{
if (_prefabId == Guid.Empty)
{
break;
}
var prefab = FlaxEngine.Content.Load<Prefab>(_prefabId);
if (prefab)
{