ENH: skip_object: set enable_skip to false when only one object in plate

Single object doesn't need to support skip

JIRA: no-jira
Change-Id: Ic42488b80b09a451286d68f8f2348eade879eed8
This commit is contained in:
lane.wei 2024-01-16 11:59:46 +08:00 committed by Lane.Wei
parent 4207c8b3d0
commit 4bcb70f079
1 changed files with 3 additions and 2 deletions

View File

@ -1675,6 +1675,7 @@ 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());
//BBS: judge whether support skipping, if yes, list all label_object_id with sorted order here
if (print.num_object_instances() <= g_max_label_object && //Don't support too many objects on one plate
(print.num_object_instances() > 1) && //Don't support skipping single object
print.calib_params().mode == CalibMode::Calib_None) { //Don't support skipping in cali mode
m_enable_label_object = true;
m_label_objects_ids.clear();