From fc880ecb51cd6f4436093ee05370656f64845fef Mon Sep 17 00:00:00 2001 From: kisslorand Date: Sat, 22 Nov 2025 14:56:51 +0200 Subject: [PATCH] Let "Only lift Z below" to be disabled --- src/libslic3r/GCodeWriter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCodeWriter.cpp b/src/libslic3r/GCodeWriter.cpp index f3d218750b..c674233390 100644 --- a/src/libslic3r/GCodeWriter.cpp +++ b/src/libslic3r/GCodeWriter.cpp @@ -560,7 +560,7 @@ std::string GCodeWriter::lazy_lift(LiftType lift_type, bool spiral_vase) int filament_id = filament()->id(); double above = this->config.retract_lift_above.get_at(extruder_id); double below = this->config.retract_lift_below.get_at(extruder_id); - if (m_pos.z() >= above && m_pos.z() <= below) + if (m_pos.z() >= above && (m_pos.z() <= below || below == 0.)) target_lift = this->config.z_hop.get_at(filament_id); } // BBS @@ -588,7 +588,7 @@ std::string GCodeWriter::eager_lift(const LiftType type) { int filament_id = filament()->id(); double above = this->config.retract_lift_above.get_at(extruder_id); double below = this->config.retract_lift_below.get_at(extruder_id); - if (m_pos.z() >= above && m_pos.z() <= below) + if (m_pos.z() >= above && (m_pos.z() <= below || below == 0.)) target_lift = this->config.z_hop.get_at(filament_id); }