Fix error

This commit is contained in:
Wojtek Figat
2021-08-08 20:58:36 +02:00
parent 36df9757b1
commit 65f9e9d0aa

View File

@@ -216,7 +216,7 @@ namespace FlaxEditor.Modules
}
}
private void OnDirty(IEnumerable<SceneGraphNode> objects)
private void OnDirty(List<SceneGraphNode> objects)
{
var options = Editor.Options.Options;
var isPlayMode = Editor.StateMachine.IsPlayMode;
@@ -236,7 +236,7 @@ namespace FlaxEditor.Modules
{
foreach (var obj in objects)
{
if (obj is ActorNode node && node.Actor.Scene && node.AffectsNavigationWithChildren)
if (obj is ActorNode node && node.Actor && node.Actor.Scene && node.AffectsNavigationWithChildren)
{
var bounds = node.Actor.BoxWithChildren;
Navigation.BuildNavMesh(node.Actor.Scene, bounds, options.General.AutoRebuildNavMeshTimeoutMs);