From 532ae53d0b87d05d4114848ee1a7d3b419e1df9e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 5 Jun 2013 16:58:30 +0200 Subject: [PATCH] Use G1 instead of G0 for restart after retraction to avoid blending with the previous travel move. #1212 --- lib/Slic3r/GCode.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 7f5ed876fe..b4a8d6b2f5 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -439,7 +439,8 @@ sub unretract { my $to_unretract = $self->extruder->retracted + $self->extruder->restart_extra; if ($to_unretract) { $self->speed('retract'); - $gcode .= $self->G0(undef, undef, $to_unretract, "compensate retraction"); + # use G1 instead of G0 because G0 will blend the restart with the previous travel move + $gcode .= $self->G1(undef, undef, $to_unretract, "compensate retraction"); $self->extruder->retracted(0); $self->extruder->restart_extra(0); }