Merge pull request #12864 from Paulb23/root_node_delete_undo_issue_3642

Fixed scene tree not updating when undo/redo delete of root node, issue 3642
This commit is contained in:
Rémi Verschelde 2017-11-12 21:16:45 +01:00 committed by GitHub
commit 858d3d4adc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {