From ad87dac77ec4707012ab2567a3dcf16e622760b5 Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Thu, 16 Nov 2017 22:22:51 +0000 Subject: [PATCH] Fixed scene tree updating when undoing root node creation, issue 6125 --- editor/scene_tree_dock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 6b008838e5c..f0964a3eb14 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1415,6 +1415,7 @@ void SceneTreeDock::_create() { } else { editor_data->get_undo_redo().add_do_method(editor, "set_edited_scene", child); + editor_data->get_undo_redo().add_do_method(scene_tree, "update_tree"); editor_data->get_undo_redo().add_do_reference(child); editor_data->get_undo_redo().add_undo_method(editor, "set_edited_scene", (Object *)NULL); }