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:
commit
858d3d4adc
1 changed files with 1 additions and 0 deletions
|
@ -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_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(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(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);
|
editor_data->get_undo_redo().add_undo_reference(edited_scene);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue