Fix Change Node Type after Add Node Here

(cherry picked from commit 31a81562a8)
This commit is contained in:
kobewi 2021-07-20 16:47:57 +02:00 committed by Rémi Verschelde
parent 329df4e404
commit d2034fc269
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();