Bugfix: fatal error when failed loops were included in slices. #1358
This commit is contained in:
parent
9adac636b8
commit
8fe38d9b71
1 changed files with 3 additions and 3 deletions
|
@ -267,10 +267,10 @@ sub make_loops {
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: we should try to combine failed loops
|
# TODO: we should try to combine failed loops
|
||||||
for (grep @$_ >= 3, @failed_loops) {
|
for my $loop (grep @$_ >= 3, @failed_loops) {
|
||||||
push @polygons, Slic3r::Polygon->new(@$_);
|
push @polygons, Slic3r::Polygon->new(map $_->[I_A], @$loop);
|
||||||
Slic3r::debugf " Discovered failed %s polygon of %d points\n",
|
Slic3r::debugf " Discovered failed %s polygon of %d points\n",
|
||||||
($polygons[-1]->is_counter_clockwise ? 'ccw' : 'cw'), scalar(@$_)
|
($polygons[-1]->is_counter_clockwise ? 'ccw' : 'cw'), scalar(@$loop)
|
||||||
if $Slic3r::debug;
|
if $Slic3r::debug;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue