From 1d9bd1c62cfb473bef452cf63eb92262e792c29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Thu, 7 Dec 2023 12:22:33 +0100 Subject: [PATCH] Disable helical layer change when there is no layer change retraction --- src/libslic3r/GCode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index b8908ea724..b94f9b9c19 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -2751,15 +2751,17 @@ std::string GCodeGenerator::change_layer( const std::string comment{"move to next layer (" + std::to_string(m_layer_index) + ")"}; - bool helical_layer_change{ + bool do_helical_layer_change{ !spiral_vase_enabled && print_z > previous_layer_z + && EXTRUDER_CONFIG(retract_layer_change) + && EXTRUDER_CONFIG(retract_length) > 0 && EXTRUDER_CONFIG(travel_ramping_lift) && EXTRUDER_CONFIG(travel_slope) > 0 && EXTRUDER_CONFIG(travel_slope) < 90 }; const std::optional helix_gcode{ - helical_layer_change ? + do_helical_layer_change ? this->get_helical_layer_change_gcode( m_config.z_offset.value + previous_layer_z, m_config.z_offset.value + print_z,