ENH: remove the single filament limitation of skipping object

We planed to skip uncessary filament changing when skip
object. However, this caused color mixing.

If we try to fix the color mixing issue, the flush gcode
should be generated by printer itself. This is not a short
time job.

So currently we never skip changing filament when skip
object. This will not save much time and flushing. But better
than none.

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: I6046cd2765cf68058712b4256402acc0be771144
(cherry picked from commit 7cbd0b35671518636dcca173220b25f6dc18ec1f)
This commit is contained in:
salt.wei 2023-08-10 20:25:55 +08:00 committed by lane.wei
parent 92a740a112
commit 9984fb2c3f

View file

@ -1527,8 +1527,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
//BBS: total layer number
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.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
if (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_label_objects_ids.clear();