Bugfix: retraction wasn't triggered when moving between copies. #232

This commit is contained in:
Alessandro Ranellucci 2012-02-28 21:55:32 +01:00
parent 8cac0f8c87
commit 0520d1645b

View file

@ -640,7 +640,11 @@ sub export_gcode {
$layer_gcode .= $extruder->set_acceleration($Slic3r::perimeter_acceleration);
$layer_gcode .= $extruder->extrude_loop($_, 'skirt') for @{ $layer->skirts };
foreach my $copy (@{$self->copies}) {
for (my $i = 0; $i <= $#{$self->copies}; $i++) {
# retract explicitely because changing the shift_[xy] properties below
# won't always trigger the automatic retraction
$layer_gcode .= $extruder->retract;
$extruder->shift_x($shift[X] + unscale $copy->[X]);
$extruder->shift_y($shift[Y] + unscale $copy->[Y]);