Fix scene tree dock focus after using "Add Child Node" button

(cherry picked from commit 512b70858c)
This commit is contained in:
Haoyu Qiu 2022-06-12 13:03:01 +08:00 committed by Rémi Verschelde
parent d52681085e
commit 81fa4a4268
1 changed files with 1 additions and 1 deletions

View File

@ -2297,7 +2297,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) {