diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-04-10 17:01:42 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-04-10 17:01:42 +0200 |
commit | 9432e06e056e3272662fa8e0fdf7f7c227b66b1b (patch) | |
tree | f1e3fcb034118856bed87db80fb22392e9096bfb | |
parent | f75b9e62468ba65753f2ce49c02f1a129c08b717 (diff) |
Focus SceneTree dock after creating new node
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 85a56a904d..752c1afff2 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1848,6 +1848,8 @@ void SceneTreeDock::_create() { 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) { |