From f2e6a4c08e45c386a0273e53dac5e117fd2c5518 Mon Sep 17 00:00:00 2001 From: Kiss Lorand <50251547+kisslorand@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:49:06 +0300 Subject: [PATCH] Fix Z offset for 1st layer (#11011) --- src/libslic3r/GCode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 65ed652495..16f1404273 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -5230,9 +5230,9 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description, sloped == nullptr ? DBL_MAX : get_sloped_z(sloped->slope_begin.z_ratio) ); m_need_change_layer_lift_z = false; - // Orca: force restore Z after unknown last pos + // Orca: ensure Z matches planned layer height if (_last_pos_undefined && !slope_need_z_travel) { - gcode += this->writer().travel_to_z(m_last_layer_z, "force restore Z after unknown last pos", true); + gcode += this->writer().travel_to_z(m_nominal_z, "ensure Z matches planned layer height", true); } }