FIX:gcode_3mf() and .gcode file not need sync nozzle and ams

and current plate has no object not need sync nozzle and ams
jira: none

Change-Id: Ic3b724b3f05cce437228bca29ccd25bea021158f
This commit is contained in:
zhou.xu 2024-12-27 11:05:49 +08:00 committed by lane.wei
parent 0fe8675141
commit 6fe0dd2a3a
1 changed files with 3 additions and 1 deletions

View File

@ -9097,7 +9097,9 @@ bool Plater::priv::check_ams_status_impl()
MachineObject* obj = dev->get_selected_machine();
if (!obj || !obj->is_multi_extruders())
return true;
if (q->is_gcode_3mf() || q->only_gcode_mode() || q->get_partplate_list().get_curr_plate()->get_objects().empty()) {
return true;
}
PresetBundle *preset_bundle = wxGetApp().preset_bundle;
if (preset_bundle && preset_bundle->printers.get_edited_preset().get_printer_type(preset_bundle) == obj->printer_type) {
bool is_same_as_printer = true;