mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-13 06:46:11 -06:00
Fix compile error
This commit is contained in:
parent
108a5b8344
commit
b4f1ef06a2
1 changed files with 2 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue