From 088212cc7aa16eaa2b612fbb0dc57eaaa3405000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Wed, 14 Feb 2024 10:28:11 +0100 Subject: [PATCH] Add missing lift after simple layer change --- src/libslic3r/GCode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 81730128d5..f0540d2359 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -965,7 +965,7 @@ void GCodeGenerator::_do_export(Print& print, GCodeOutputStream &file, Thumbnail m_last_mm3_per_mm = 0.; #endif // ENABLE_GCODE_VIEWER_DATA_CHECKING - // How many times will be change_layer() called? + // How many times will be change_layer() called?gcode.cpp // change_layer() in turn increments the progress bar status. m_layer_count = 0; if (print.config().complete_objects.value) { @@ -3036,7 +3036,8 @@ std::string GCodeGenerator::travel_to_first_position(const Vec3crd& point) { if (!this->last_position || EXTRUDER_CONFIG(retract_before_travel) < (this->point_to_gcode(*this->last_position) - gcode_point.head<2>()).norm()) { - gcode += this->retract_and_wipe(); + gcode += this->writer().retract(); + gcode += this->writer().get_travel_to_z_gcode(gcode_point.z() + EXTRUDER_CONFIG(retract_lift), "lift"); } } this->last_position = point.head<2>();