Bugfix: fatal error when failed loops were included in slices. #1358

new-support2
Alessandro Ranellucci 2013-07-29 14:16:33 +02:00
parent 6bfe169686
commit c210f5ccc4
1 changed files with 3 additions and 3 deletions

View File

@ -267,10 +267,10 @@ sub make_loops {
}
# TODO: we should try to combine failed loops
for (grep @$_ >= 3, @failed_loops) {
push @polygons, Slic3r::Polygon->new(@$_);
for my $loop (grep @$_ >= 3, @failed_loops) {
push @polygons, Slic3r::Polygon->new(map $_->[I_A], @$loop);
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;
}