mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Fix compile error
This commit is contained in:
@@ -1155,15 +1155,9 @@ void AMSMaterialsSetting::on_select_filament(wxCommandEvent &evt)
|
|||||||
m_pa_profile_items.clear();
|
m_pa_profile_items.clear();
|
||||||
m_comboBox_cali_result->SetValue(wxEmptyString);
|
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;
|
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) {
|
if (obj->cali_version >= 0) {
|
||||||
// add default item
|
// add default item
|
||||||
PACalibResult default_item;
|
PACalibResult default_item;
|
||||||
|
|||||||
Reference in New Issue
Block a user