diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-20 17:24:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 17:24:27 +0200 |
commit | bb037de95c78946746579b6d36fce78cd9b24065 (patch) | |
tree | 54a4a3ed41fc0e3d389145b2f07701f1e6aa8dfe | |
parent | 67d3195c60da676e12e49f5911cc6ec1f37e55a6 (diff) | |
parent | 31a81562a8d516b8991a6c882186f2637baebc63 (diff) |
Merge pull request #50649 from KoBeWi/🐛
Fix Change Node Type after Add Node Here
-rw-r--r-- | editor/scene_tree_dock.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index dad708612e..6d1deb86c6 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -544,6 +544,11 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) { break; } + if (reset_create_dialog) { + create_dialog->set_base_type("Node"); + reset_create_dialog = false; + } + Node *selected = scene_tree->get_selected(); if (!selected && !editor_selection->get_selected_node_list().is_empty()) { selected = editor_selection->get_selected_node_list().front()->get(); |