FIX: Object skip incorrectly skipped color change
github: 4940 Change-Id: Ia7b48638ff2f7a7cddf9b033b5831b6f3fa5d1e7
This commit is contained in:
parent
e27ad7da55
commit
2263f3d627
|
@ -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
|
// BBS: insert skip object label before change filament while by object
|
||||||
if (by_object)
|
if (by_object)
|
||||||
m_writer.add_object_change_labels(gcode);
|
m_writer.add_object_change_labels(gcode);
|
||||||
|
else
|
||||||
|
m_writer.add_object_end_labels(gcode);
|
||||||
|
|
||||||
if (m_writer.extruder() != nullptr) {
|
if (m_writer.extruder() != nullptr) {
|
||||||
// Process the custom filament_end_gcode. set_extruder() is only called if there is no wipe tower
|
// Process the custom filament_end_gcode. set_extruder() is only called if there is no wipe tower
|
||||||
|
|
Loading…
Reference in New Issue