Merge pull request #12976 from Paulb23/scene_tree_add_undo_issue_6125

Fixed scene tree updating when undo/redo root node creation, issue 6125
This commit is contained in:
Rémi Verschelde 2017-11-16 23:37:24 +01:00 committed by GitHub
commit 7ae8ba2d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1423,6 +1423,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);
}