From cc585a646baa1e75fa288e6d9db037bc12e36825 Mon Sep 17 00:00:00 2001 From: Kiss Lorand <50251547+kisslorand@users.noreply.github.com> Date: Thu, 15 Jan 2026 16:39:19 +0200 Subject: [PATCH] Fix: Bring back "Only lift Z below" can be disabled (#11440) 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 1008e5eab1..b208148c2b 100644 --- a/src/libslic3r/GCodeWriter.cpp +++ b/src/libslic3r/GCodeWriter.cpp @@ -565,7 +565,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 @@ -593,7 +593,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); }