From 026ca7b3c961660e3003125e792cfb131ffe7498 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Tue, 14 Feb 2023 14:02:40 +0100 Subject: [PATCH] Fixed wipe tower with no sparse layers (layers were missing) #9592 #9703 --- src/libslic3r/GCode.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 07209c8d1a..6cb9e8e358 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -230,6 +230,8 @@ namespace Slic3r { std::string tcr_rotated_gcode = post_process_wipe_tower_moves(tcr, wipe_tower_offset, wipe_tower_rotation); + gcode += gcodegen.writer().unlift(); // Make sure there is no z-hop (in most cases, there isn't). + double current_z = gcodegen.writer().get_position().z(); if (z == -1.) // in case no specific z was provided, print at current_z pos z = current_z;