Skip to content

Commit

Permalink
Bugfix: fatal error when failed loops were included in slices. #1358
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Jul 29, 2013
1 parent 9adac63 commit 8fe38d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Slic3r/TriangleMesh.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8fe38d9

Please sign in to comment.