fix crash with prefab window open on script reload

This commit is contained in:
envision3d
2024-08-09 00:16:38 -05:00
committed by Wojtek Figat
parent 545e59aba5
commit 25aa5bee85

View File

@@ -632,7 +632,7 @@ namespace FlaxEditor.Viewport
_debugDrawActors.Clear();
foreach (var child in SceneGraphRoot.ChildNodes)
{
if (child is not ActorNode actorNode)
if (child is not ActorNode actorNode || !actorNode.Actor)
continue;
var actor = actorNode.Actor;
if (collectActors)