FIX: Object skip incorrectly skipped color change

github: 4940
Change-Id: Ia7b48638ff2f7a7cddf9b033b5831b6f3fa5d1e7
This commit is contained in:
zhimin.zeng 2024-10-17 21:00:04 +08:00 committed by Lane.Wei
parent e27ad7da55
commit 2263f3d627
1 changed files with 2 additions and 0 deletions

View File

@ -5325,6 +5325,8 @@ std::string GCode::set_extruder(unsigned int extruder_id, double print_z, bool b
// BBS: insert skip object label before change filament while by object
if (by_object)
m_writer.add_object_change_labels(gcode);
else
m_writer.add_object_end_labels(gcode);
if (m_writer.extruder() != nullptr) {
// Process the custom filament_end_gcode. set_extruder() is only called if there is no wipe tower