From 2957508b4ad42e9ecc536b1dd5f1a6fdd362f263 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Tue, 28 Apr 2026 18:46:56 +0800 Subject: [PATCH] Fixed a bug where the scarf seam wouldn't work properly when ZAA was disabled. --- src/libslic3r/GCode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 0483c236ee..487eefb560 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -6248,7 +6248,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description, gcode += m_writer.travel_to_z(first_z, "set Z for contouring", true); } } - if (!path.z_contoured) { + if (!path.z_contoured && sloped == nullptr) { double current_z = m_writer.get_position().z(); if (GCodeFormatter::quantize_xyzf(current_z) != GCodeFormatter::quantize_xyzf(m_nominal_z)) { gcode += this->writer().travel_to_z(m_nominal_z, "reset Z after contouring", true);