mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Bugfix: recent changes broke the "Infill every N layers" feature
This commit is contained in:
1 parent
ba1b59f54c
commit
8f32ee8f5a
3 files changed
+21
-4
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user