From 90c1a5df9970a70d0b8ca41aca1ee1a019d4a20e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Fri, 15 Nov 2024 13:42:15 +0100 Subject: [PATCH] Fix current z when moving to wipe tower --- src/libslic3r/GCode/WipeTowerIntegration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/GCode/WipeTowerIntegration.cpp b/src/libslic3r/GCode/WipeTowerIntegration.cpp index cdd153d6df..5fc3d18653 100644 --- a/src/libslic3r/GCode/WipeTowerIntegration.cpp +++ b/src/libslic3r/GCode/WipeTowerIntegration.cpp @@ -72,7 +72,7 @@ std::string WipeTowerIntegration::append_tcr(GCodeGenerator &gcodegen, const Wip gcode += gcodegen.travel_to_first_position(to, current_z, ExtrusionRole::Mixed, [](){return "";}); } else { if (gcodegen.last_position) { - const Vec3crd from{to_3d(*gcodegen.last_position, scaled(z))}; + const Vec3crd from{to_3d(*gcodegen.last_position, scaled(current_z))}; gcode += gcodegen.travel_to( from, to, ExtrusionRole::Mixed, comment, [](){return "";} );