Bugfix: not retracting between infill of different islands using low infill densities. #242

This commit is contained in:
Alessandro Ranellucci 2012-06-06 19:38:35 +02:00
parent 58a696e666
commit 2ccb443c2f

View file

@ -130,7 +130,7 @@ sub extrude_path {
my $distance_from_last_pos = $self->last_pos->distance_to($path->points->[0]) * $Slic3r::scaling_factor;
my $distance_threshold = $Slic3r::retract_before_travel;
$distance_threshold = 2 * ($self->layer ? $self->layer->flow->width : $Slic3r::flow->width) / $Slic3r::fill_density * sqrt(2)
if $Slic3r::fill_density > 0 && $description =~ /fill/;
if 0 && $Slic3r::fill_density > 0 && $description =~ /fill/;
if ($distance_from_last_pos >= $distance_threshold) {
$gcode .= $self->retract(travel_to => $path->points->[0]);