Fix missing scene dirty state when spawning prefab in scene tree

This commit is contained in:
Wojtek Figat
2023-11-19 20:24:47 +01:00
parent 4e190c2e3c
commit fc2d9a745f

View File

@@ -423,6 +423,7 @@ namespace FlaxEditor.Windows
var actor = item.OnEditorDrop(this);
actor.Name = item.ShortName;
Level.SpawnActor(actor);
Editor.Scene.MarkSceneEdited(actor.Scene);
}
result = DragDropEffect.Move;
}
@@ -440,6 +441,7 @@ namespace FlaxEditor.Windows
}
actor.Name = item.Name;
Level.SpawnActor(actor);
Editor.Scene.MarkSceneEdited(actor.Scene);
}
result = DragDropEffect.Move;
}