diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index 13ef6e9e0e8..78fb35e354e 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -433,26 +433,7 @@ Object *CreateDialog::instance_selected() { custom = md; if (custom != String()) { - if (EditorNode::get_editor_data().get_custom_types().has(custom)) { - - for (int i = 0; i < EditorNode::get_editor_data().get_custom_types()[custom].size(); i++) { - if (EditorNode::get_editor_data().get_custom_types()[custom][i].name == selected->get_text(0)) { - Ref icon = EditorNode::get_editor_data().get_custom_types()[custom][i].icon; - Ref