From c617a6427ec8c77db3af216429f5a6adaabe0c4d Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Thu, 13 Feb 2025 22:23:20 +0800 Subject: [PATCH] FIX: fix wrong retract when change filament jira: none Change-Id: I6bf6d4620234d9c7b5246126bfdcdf8b5e1944e3 (cherry picked from commit 0381d5827c031a3e5486d28cd734794485f4ecf0) --- src/libslic3r/GCode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 2a25bba1dd..30bb12dfeb 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -714,7 +714,7 @@ static std::vector get_path_of_change_filament(const Print& print) auto_lift_type = LiftType::SpiralLift; // BBS: should be placed before toolchange parsing - std::string toolchange_retract_str = gcodegen.retract(false, false, auto_lift_type); + std::string toolchange_retract_str = gcodegen.retract(true, false, auto_lift_type); check_add_eol(toolchange_retract_str); // Process the custom change_filament_gcode. If it is empty, provide a simple Tn command to change the filament. @@ -738,7 +738,7 @@ static std::vector get_path_of_change_filament(const Print& print) gcodegen.m_wipe.reset_path(); for (const Vec2f& wipe_pt : tcr.nozzle_change_result.wipe_path) gcodegen.m_wipe.path.points.emplace_back(wipe_tower_point_to_object_point(gcodegen, transform_wt_pt(wipe_pt) + plate_origin_2d)); - nozzle_change_gcode_trans += gcodegen.retract(false, false, auto_lift_type); + nozzle_change_gcode_trans += gcodegen.retract(true, false, auto_lift_type); change_filament_gcode = nozzle_change_gcode_trans + change_filament_gcode; }