Don't perform wiping if we have just changed layer and no extrusions were performed before the first retraction. Includes regression test. #2214

This commit is contained in:
Alessandro Ranellucci 2014-12-24 12:02:42 +01:00
parent 9dd228df01
commit 19548fe301
2 changed files with 17 additions and 2 deletions

View file

@ -96,6 +96,10 @@ sub change_layer {
$gcode .= $self->retract;
}
$gcode .= $self->writer->travel_to_z($z, 'move to next layer (' . $self->layer->id . ')');
# forget last wiping path as wiping after raising Z is pointless
$self->wipe->path(undef);
return $gcode;
}