From 1e1bf5ae8698eaef361dea44b8c86a9326499c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=A0ach?= Date: Wed, 28 Feb 2024 12:07:45 +0100 Subject: [PATCH] Fix: Update position after toolchange. --- src/libslic3r/GCode/WipeTowerIntegration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libslic3r/GCode/WipeTowerIntegration.cpp b/src/libslic3r/GCode/WipeTowerIntegration.cpp index c63b470b9f..ea6b7fd3de 100644 --- a/src/libslic3r/GCode/WipeTowerIntegration.cpp +++ b/src/libslic3r/GCode/WipeTowerIntegration.cpp @@ -93,8 +93,7 @@ std::string WipeTowerIntegration::append_tcr(GCodeGenerator &gcodegen, const Wip gcodegen.m_wipe.reset_path(); // We don't want wiping on the ramming lines. toolchange_gcode_str = gcodegen.set_extruder(new_extruder_id, tcr.print_z); // TODO: toolchange_z vs print_z if (gcodegen.config().wipe_tower) { - const double retract_to_z = tcr.priming ? tcr.print_z + gcodegen.config().z_offset.value : z; - deretraction_str += gcodegen.writer().get_travel_to_z_gcode(retract_to_z, "restore layer Z"); + deretraction_str += gcodegen.writer().travel_to_z(z, "restore layer Z"); deretraction_str += gcodegen.unretract(); } }