Use G1 instead of G0 for restart after retraction to avoid blending with the previous travel move. #1212

This commit is contained in:
Alessandro Ranellucci 2013-06-05 16:58:30 +02:00
parent b3f1795cb4
commit 532ae53d0b

View File

@ -439,7 +439,8 @@ sub unretract {
my $to_unretract = $self->extruder->retracted + $self->extruder->restart_extra; my $to_unretract = $self->extruder->retracted + $self->extruder->restart_extra;
if ($to_unretract) { if ($to_unretract) {
$self->speed('retract'); $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->retracted(0);
$self->extruder->restart_extra(0); $self->extruder->restart_extra(0);
} }