mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Make plater work with XS data in single-thread environment
This commit is contained in:
1 parent
87a5de193d
commit
fb7cea3cb9
3 files changed
+7
-5
No files matched your search
@@ -94,6 +94,7 @@ sub union_ex {
|
||||
my ($polygons, $jointype, $safety_offset) = @_;
|
||||
$jointype = PFT_NONZERO unless defined $jointype;
|
||||
$clipper->clear;
|
||||
$polygons = $polygons->arrayref if ref $polygons eq 'Slic3r::ExPolygon::XS';
|
||||
$clipper->add_subject_polygons($safety_offset ? safety_offset($polygons) : $polygons);
|
||||
return [
|
||||
map Slic3r::ExPolygon::XS->new($_->{outer}, @{$_->{holes}}),
|
||||
|
||||
Reference in new issue
Block a user