Focus SceneTree dock after creating new node

This commit is contained in:
Tomasz Chabora 2019-04-10 17:01:42 +02:00
parent f75b9e6246
commit 9432e06e05
1 changed files with 2 additions and 0 deletions

View File

@ -1848,6 +1848,8 @@ void SceneTreeDock::_create() {
replace_node(n, newnode); replace_node(n, newnode);
} }
} }
scene_tree->get_scene_tree()->call_deferred("grab_focus");
} }
void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_properties) { void SceneTreeDock::replace_node(Node *p_node, Node *p_by_node, bool p_keep_properties) {