Fixed scene tree updating when undoing root node creation, issue 6125

This commit is contained in:
Paulb23 2017-11-16 22:22:51 +00:00
parent 47e5b43160
commit ad87dac77e

View File

@ -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);
}