Skip to content

Commit

Permalink
Merge pull request #61964 from timothyqiu/add-focus
Browse files Browse the repository at this point in the history
[3.x] Fix scene tree dock focus after using "Add Child Node" button
  • Loading branch information
akien-mga authored Jun 12, 2022
2 parents 0267c05 + 512b708 commit 57489f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 57489f4

Please sign in to comment.