Merge branch 'feature/fix-prefab-crash' of https://github.com/envision3d/FlaxEngine into envision3d-feature/fix-prefab-crash
This commit is contained in:
@@ -627,7 +627,7 @@ namespace FlaxEditor.Viewport
|
||||
// Debug draw all actors in prefab
|
||||
foreach (var child in SceneGraphRoot.ChildNodes)
|
||||
{
|
||||
if (child is not ActorNode actorNode)
|
||||
if (child is not ActorNode actorNode || !actorNode.Actor)
|
||||
continue;
|
||||
DebugDraw.DrawActorsTree(actorNode.Actor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user