mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fixed scene tree updating when undoing root node creation, issue 6125
This commit is contained in:
parent
47e5b43160
commit
ad87dac77e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user