From cc45644a25c90ab7994d23afa5931d239ec74c77 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 14 Jun 2023 13:03:04 +0200 Subject: [PATCH] Fix an incorrect extra travel when using the wipe tower with no ramming and with extruder offset applied #10801 --- 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 d65e0aa9f..1f306c83c 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -312,7 +312,7 @@ namespace Slic3r { std::string gcode_out; std::string line; Vec2f pos = tcr.start_pos; - Vec2f transformed_pos = pos; + Vec2f transformed_pos = Eigen::Rotation2Df(angle) * pos + translation; Vec2f old_pos(-1000.1f, -1000.1f); while (gcode_str) {