Fix random crashes on 32-bit. Thank you Valgrind

stable
Alessandro Ranellucci 2013-12-28 15:32:43 +01:00
parent 6d8d166eff
commit 907e72830f
1 changed files with 1 additions and 0 deletions

View File

@ -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_as_polygons(&Slic3r::SCALED_RESOLUTION), @{union_ex(\@last)} ],
-($pspacing/2 + $ispacing/2),