ENH: don't need to skip object in cali mode

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I3c71f442e8d1e94786912ddf6a4367597073cbac
This commit is contained in:
salt.wei 2023-07-03 19:50:16 +08:00 committed by Lane.Wei
parent 2368d929fe
commit 5e36c36f70

View file

@ -1528,7 +1528,8 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
file.write_format(";%s\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Total_Layer_Number_Placeholder).c_str()); file.write_format(";%s\n", GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Total_Layer_Number_Placeholder).c_str());
//BBS: judge whether support skipping, if yes, list all label_object_id with sorted order here //BBS: judge whether support skipping, if yes, list all label_object_id with sorted order here
if (print.extruders(true).size() == 1 && //Don't support multi-color if (print.extruders(true).size() == 1 && //Don't support multi-color
print.num_object_instances() <= g_max_label_object) { //Don't support too many objects on one plate print.num_object_instances() <= g_max_label_object && //Don't support too many objects on one plate
print.calib_params().mode == CalibMode::Calib_None) { //Don't support skipping in cali mode
m_enable_label_object = true; m_enable_label_object = true;
m_label_objects_ids.clear(); m_label_objects_ids.clear();
m_label_objects_ids.reserve(print.num_object_instances()); m_label_objects_ids.reserve(print.num_object_instances());