diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2017-11-12 16:12:53 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2017-11-12 16:12:53 +0000 |
commit | 7ec55de8ecdf0c531fb41acbc89f219f367ecace (patch) | |
tree | 3a315f57d0803c41eec3d224d624d65dea1d7f6f | |
parent | b3c08a83266b591cc8442946e94d71eab992ec49 (diff) |
Fixed scene tree not updating when undo/redo delete of root node, issue 3642
-rw-r--r-- | editor/scene_tree_dock.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 58f70ce11e..6b008838e5 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -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 { |