mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-28 11:50:49 -07:00
FIX: should not sync nozzle flow type for P/A printers
jira: STUDIO-12183 Change-Id: I6351c18b7e01c50aa2c741047934a96ca7572c12 (cherry picked from commit 93095852fb41d7a2b0f252d11125a614fd4a1ef0)
This commit is contained in:
parent
d4fd53763e
commit
f60020da21
1 changed files with 13 additions and 6 deletions
|
|
@ -1264,13 +1264,20 @@ bool Sidebar::priv::sync_extruder_list(bool &only_external_material)
|
|||
for (size_t index = 0; index < extruder_nums; ++index) {
|
||||
int extruder_id = extruder_map[index];
|
||||
nozzle_diameters[extruder_id] = obj->m_extder_data.extders[index].current_nozzle_diameter;
|
||||
if (obj->m_extder_data.extders[index].current_nozzle_flow_type == NozzleFlowType::NONE_FLOWTYPE) {
|
||||
MessageDialog dlg(this->plater, _L("There are unset nozzle types. Please set the nozzle types of all extruders before synchronizing."),
|
||||
_L("Sync extruder infomation"), wxICON_WARNING | wxOK);
|
||||
dlg.ShowModal();
|
||||
continue;
|
||||
NozzleVolumeType target_type = NozzleVolumeType::nvtStandard;
|
||||
auto printer_tab = dynamic_cast<TabPrinter *>(wxGetApp().get_tab(Preset::TYPE_PRINTER));
|
||||
if (obj->is_nozzle_flow_type_supported()) {
|
||||
if (obj->m_extder_data.extders[index].current_nozzle_flow_type == NozzleFlowType::NONE_FLOWTYPE) {
|
||||
MessageDialog dlg(this->plater, _L("There are unset nozzle types. Please set the nozzle types of all extruders before synchronizing."),
|
||||
_L("Sync extruder infomation"), wxICON_WARNING | wxOK);
|
||||
dlg.ShowModal();
|
||||
continue;
|
||||
}
|
||||
// hack code, only use standard flow for 0.2
|
||||
if (std::fabs(nozzle_diameters[extruder_id] - 0.2) > EPSILON)
|
||||
target_type = NozzleVolumeType(obj->m_extder_data.extders[extruder_id].current_nozzle_flow_type - 1);
|
||||
}
|
||||
printer_tab->set_extruder_volume_type(index, NozzleVolumeType(obj->m_extder_data.extders[extruder_id].current_nozzle_flow_type - 1));
|
||||
printer_tab->set_extruder_volume_type(index, target_type);
|
||||
}
|
||||
|
||||
int deputy_4 = 0, main_4 = 0, deputy_1 = 0, main_1 = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue