Bugfix: recent changes broke the "Infill every N layers" feature

This commit is contained in:
Alessandro Ranellucci 2011-11-13 21:46:32 +01:00
parent ba1b59f54c
commit 8f32ee8f5a
3 changed files with 21 additions and 4 deletions

View file

@ -31,11 +31,14 @@ sub diff_ex {
$clipper->clear;
$clipper->add_subject_polygons($subject);
$clipper->add_clip_polygons($clip);
return $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO);
return [
map Slic3r::ExPolygon->new($_),
@{ $clipper->ex_execute(CT_DIFFERENCE, PFT_NONZERO, PFT_NONZERO) },
];
}
sub diff {
return [ map { $_->{outer}, $_->{holes} } diff_ex(@_) ];
return [ map @$_, diff_ex(@_) ];
}
sub union_ex {