Focus SceneTree dock after creating new node
(cherry picked from commit 9432e06e05
)
This commit is contained in:
parent
42514bfd80
commit
ab8ccee1da
|
@ -1760,6 +1760,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) {
|
||||||
|
|
Loading…
Reference in New Issue