From 64892c2203706c60548dafa8259f5b7c9fed2797 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 10 Mar 2012 23:49:24 +0100 Subject: [PATCH] Bugfix: fatal error on some models. #255 --- lib/Slic3r/Fill/Rectilinear.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/Fill/Rectilinear.pm b/lib/Slic3r/Fill/Rectilinear.pm index 9d264a8d5..2d589a67d 100644 --- a/lib/Slic3r/Fill/Rectilinear.pm +++ b/lib/Slic3r/Fill/Rectilinear.pm @@ -16,6 +16,7 @@ sub fill_surface { $self->rotate_points($expolygon, $rotate_vector); my ($expolygon_off) = $expolygon->offset_ex(scale 0.2); + return {} if !$expolygon_off; # skip some very small polygons (which shouldn't arrive here) my $bounding_box = [ $expolygon_off->bounding_box ]; my $min_spacing = scale $params{flow_spacing};