From 4a3a4645f0621127705581c739fb10aeac32812f Mon Sep 17 00:00:00 2001 From: "salt.wei" Date: Mon, 16 Jan 2023 14:56:59 +0800 Subject: [PATCH] ENH: fix issue that sommetimes no wipe path is generated This is handling for github issue #1072 Signed-off-by: salt.wei Change-Id: I253be46b07054eb69ddbad3889e31dfca57b2a52 --- 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 7a2167fc8a..029ebf2bcc 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -176,7 +176,7 @@ bool GCode::gcode_label_objects = false; // Shorten the retraction length by the amount already retracted before wipe. length *= (1. - gcodegen.writer().extruder()->retract_before_wipe()); - if (length > 0) { + if (length >= 0) { /* Calculate how long we need to travel in order to consume the required amount of retraction. In other words, how far do we move in XY at wipe_speed for the time needed to consume retraction_length at retraction_speed? */