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:
commit
7ae8ba2d47
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue