diff options
author | Paulb23 <p_batty@hotmail.co.uk> | 2017-11-16 22:22:51 +0000 |
---|---|---|
committer | Paulb23 <p_batty@hotmail.co.uk> | 2017-11-16 22:22:51 +0000 |
commit | ad87dac77ec4707012ab2567a3dcf16e622760b5 (patch) | |
tree | 1ef8e575bc9dd98156170273fdea5e1d2eb8867f /editor | |
parent | 47e5b43160128ea6e466ad70952078ff386718cd (diff) |
Fixed scene tree updating when undoing root node creation, issue 6125
Diffstat (limited to 'editor')
-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 6b008838e5..f0964a3eb1 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); } |