From d2034fc2698e70c45c16b6d3aa3b9dc611f8db87 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 20 Jul 2021 16:47:57 +0200 Subject: [PATCH] Fix Change Node Type after Add Node Here (cherry picked from commit 31a81562a8d516b8991a6c882186f2637baebc63) --- editor/scene_tree_dock.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 5242a5b2f72..397e7dc61ec 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -541,6 +541,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().empty()) { selected = editor_selection->get_selected_node_list().front()->get();