Fix Change Node Type after Add Node Here
This commit is contained in:
parent
de4ad63e6f
commit
31a81562a8
@ -544,6 +544,11 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (reset_create_dialog) {
|
||||||
|
create_dialog->set_base_type("Node");
|
||||||
|
reset_create_dialog = false;
|
||||||
|
}
|
||||||
|
|
||||||
Node *selected = scene_tree->get_selected();
|
Node *selected = scene_tree->get_selected();
|
||||||
if (!selected && !editor_selection->get_selected_node_list().is_empty()) {
|
if (!selected && !editor_selection->get_selected_node_list().is_empty()) {
|
||||||
selected = editor_selection->get_selected_node_list().front()->get();
|
selected = editor_selection->get_selected_node_list().front()->get();
|
||||||
|
Loading…
Reference in New Issue
Block a user