From 9b94a661d9c43715da58692ca745a4bd2bb0ca57 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 29 Oct 2012 11:20:27 +0100 Subject: [PATCH] Fixed regression causing too much clipping at the endpoints of loops --- lib/Slic3r/GCode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 4bea8ddda..1cc06fe97 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -112,7 +112,7 @@ sub extrude_loop { # clip the path to avoid the extruder to get exactly on the first point of the loop; # if polyline was shorter than the clipping distance we'd get a null polyline, so # we discard it in that case - $extrusion_path->clip_end($self->layer ? $self->layer->flow->scaled_width : $Slic3r::flow->scaled_width * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_WIDTH); + $extrusion_path->clip_end(($self->layer ? $self->layer->flow->scaled_width : $Slic3r::flow->scaled_width) * &Slic3r::LOOP_CLIPPING_LENGTH_OVER_WIDTH); return '' if !@{$extrusion_path->polyline}; # extrude along the path