Merge pull request #61964 from timothyqiu/add-focus

[3.x] Fix scene tree dock focus after using "Add Child Node" button
This commit is contained in:
Rémi Verschelde 2022-06-12 10:38:46 +02:00 committed by GitHub
commit 57489f4da6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2348,7 +2348,7 @@ void SceneTreeDock::_create() {
_do_reparent(last_created, -1, nodes, true);
}
scene_tree->get_scene_tree()->grab_focus();
scene_tree->get_scene_tree()->call_deferred("grab_focus");
}
void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_properties, bool p_remove_old) {