From 5ed364910bcebb304cdcd4d75216bf882d420893 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 9 Feb 2022 15:30:11 +0100 Subject: [PATCH] Follow-up to 199dc121a55c0aa0723e5f58417bb2fad1dfc690 Quantization of G-code export to achieve more precise extrusion width control. Fix of wiping. --- 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 6a53917de1..fb6dee37ba 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -174,7 +174,7 @@ namespace Slic3r { gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Wipe_Start) + "\n"; auto end = this->path.points.end(); bool done = false; - for (; it != end; ++ it) { + for (; it != end && ! done; ++ it) { p = gcodegen.point_to_gcode_quantized(*it); double segment_length = (p - prev).norm(); double dE = GCodeFormatter::quantize_e(xy_to_e * segment_length);