From 13d7b39072a74f243b914b3fc5d1b6ed89893c74 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 28 Dec 2013 15:32:43 +0100 Subject: [PATCH] Fix random crashes on 32-bit. Thank you Valgrind --- lib/Slic3r/Layer/Region.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/Layer/Region.pm b/lib/Slic3r/Layer/Region.pm index e68127bc3..53f40a659 100644 --- a/lib/Slic3r/Layer/Region.pm +++ b/lib/Slic3r/Layer/Region.pm @@ -221,6 +221,7 @@ sub make_perimeters { # and then we offset back and forth by half the infill spacing to only consider the # non-collapsing regions $self->fill_surfaces->append( + map Slic3r::Surface->new(expolygon => $_, surface_type => S_TYPE_INTERNAL), # use a bogus surface type @{offset2_ex( [ map @{$_->simplify_p(&Slic3r::SCALED_RESOLUTION)}, @{union_ex(\@last)} ], -($pspacing/2 + $ispacing/2),