From a7d5e643ae34059c9a6ac63355de67c96777173e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 10 Oct 2011 14:37:40 +0200 Subject: [PATCH] Bugfix: couldn't set fill density to zero --- lib/Slic3r/Extruder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index bf3f54ffd..9fc4aaa74 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -74,7 +74,7 @@ sub extrude { # specified by the user *and* to the maximum distance between infill lines my $distance_from_last_pos = Slic3r::Geometry::distance_between_points($self->last_pos, $path->points->[0]->p) * $Slic3r::resolution; if ($distance_from_last_pos >= $Slic3r::retract_before_travel - && $distance_from_last_pos >= $Slic3r::flow_width / $Slic3r::fill_density * sqrt(2)) { + && ($Slic3r::fill_density == 0 || $distance_from_last_pos >= $Slic3r::flow_width / $Slic3r::fill_density * sqrt(2))) { $gcode .= $self->retract; }