From ab0300bb70394eb71fcba50bf187f22b6fcedb95 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 22 Dec 2011 18:55:18 +0100 Subject: [PATCH] Bugfix for recent solid infill adjustment math, to take float math into account --- lib/Slic3r/Fill/Rectilinear.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Fill/Rectilinear.pm b/lib/Slic3r/Fill/Rectilinear.pm index 103e2f835..357284591 100644 --- a/lib/Slic3r/Fill/Rectilinear.pm +++ b/lib/Slic3r/Fill/Rectilinear.pm @@ -37,7 +37,7 @@ sub fill_surface { my @paths = (); my $x = $bounding_box->[X1]; my $is_line_pattern = $self->isa('Slic3r::Fill::Line'); - for (my $i = 0; $x <= $bounding_box->[X2]; $i++) { + for (my $i = 0; $x <= $bounding_box->[X2] + scale epsilon; $i++) { my $vertical_line = [ [$x, $bounding_box->[Y2]], [$x, $bounding_box->[Y1]] ]; if ($is_line_pattern && $i % 2) { $vertical_line->[A][X] -= $line_oscillation;