mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Bugfix: failure when exporting SVG from object containing multiple islands. Includes regression test. #2050
This commit is contained in:
parent
0decbbf910
commit
7ea09a0071
2 changed files with 14 additions and 2 deletions
|
@ -580,7 +580,7 @@ EOF
|
|||
|
||||
my @current_layer_slices = ();
|
||||
# sort slices so that the outermost ones come first
|
||||
my @slices = sort { $a->contour->encloses_point($b->contour->[0]) ? 0 : 1 } @{$layer->slices};
|
||||
my @slices = sort { $a->contour->contains_point($b->contour->[0]) ? 0 : 1 } @{$layer->slices};
|
||||
foreach my $copy (@{$layer->object->copies}) {
|
||||
foreach my $slice (@slices) {
|
||||
my $expolygon = $slice->clone;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue