From b4f1ef06a2fc7e6889794411016e300361bb9baa Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Wed, 7 May 2025 16:24:37 +0800 Subject: [PATCH] Fix compile error --- src/slic3r/GUI/AMSMaterialsSetting.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/slic3r/GUI/AMSMaterialsSetting.cpp b/src/slic3r/GUI/AMSMaterialsSetting.cpp index 73d9ce18a9..6d1fb66656 100644 --- a/src/slic3r/GUI/AMSMaterialsSetting.cpp +++ b/src/slic3r/GUI/AMSMaterialsSetting.cpp @@ -1155,15 +1155,9 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt) m_pa_profile_items.clear(); m_comboBox_cali_result->SetValue(wxEmptyString); - int extruder_id = obj->get_extruder_id_by_ams_id(std::to_string(ams_id)); + // TODO: Orca hack + int extruder_id = 0; NozzleVolumeType nozzle_volume_type = NozzleVolumeType::nvtNormal; - if (obj->m_extder_data.extders[extruder_id].current_nozzle_flow_type == NozzleFlowType::NONE_FLOWTYPE) { - MessageDialog dlg(nullptr, _L("There are unset nozzle types. Please set the nozzle types of all extruders before synchronizing."), _L("Warning"), wxICON_WARNING | wxOK); - dlg.ShowModal(); - } - else { - nozzle_volume_type = NozzleVolumeType(obj->m_extder_data.extders[extruder_id].current_nozzle_flow_type - 1); - } if (obj->cali_version >= 0) { // add default item PACalibResult default_item;