Fixed scene tree not updating when undo/redo delete of root node, issue 3642

This commit is contained in:
Paulb23 2017-11-12 16:12:53 +00:00
parent b3c08a8326
commit 7ec55de8ec

View file

@ -1296,6 +1296,7 @@ void SceneTreeDock::_delete_confirm() {
editor_data->get_undo_redo().add_do_method(editor, "set_edited_scene", (Object *)NULL);
editor_data->get_undo_redo().add_undo_method(editor, "set_edited_scene", edited_scene);
editor_data->get_undo_redo().add_undo_method(edited_scene, "set_owner", edited_scene->get_owner());
editor_data->get_undo_redo().add_undo_method(scene_tree, "update_tree");
editor_data->get_undo_redo().add_undo_reference(edited_scene);
} else {