From 1ff54248191b96b1a179a3a9664936fe5ea9502b Mon Sep 17 00:00:00 2001 From: Ioannis Giannakas <59056762+igiannakas@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:26:43 +0300 Subject: [PATCH] Bug fix: Avoid crossing walls feature removes some retraction wipes (#6518) * Bug fix: Avoid crossing walls feature removes some retraction wipes * Merge remote-tracking branch 'upstream/main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening * Merge branch 'main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening * Merge branch 'main' into Bug-Fix-Avoid-crossing-walls-removing-wipe-moves-when-retraction-was-happening --- src/libslic3r/GCode.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 1b6335e169..9ed689b5c5 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -5892,8 +5892,10 @@ std::string GCode::travel_to(const Point& point, ExtrusionRole role, std::string // generate G-code for the travel move if (needs_retraction) { - if (m_config.reduce_crossing_wall && could_be_wipe_disabled) - m_wipe.reset_path(); + // ORCA: Fix scenario where wipe is disabled when avoid crossing perimeters was enabled even though a retraction move was performed. + // This replicates the existing behaviour of always wiping when retracting + /*if (m_config.reduce_crossing_wall && could_be_wipe_disabled) + m_wipe.reset_path();*/ Point last_post_before_retract = this->last_pos(); gcode += this->retract(false, false, lift_type);