diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-07-06 14:18:58 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-07-06 14:18:58 +0400 |
commit | 532ff3cde93afd3842e6f4d1a967208ec146012c (patch) | |
tree | 3c29a24386aef51b17b564c671c2728ee5bb465b /lib | |
parent | 985af5ee565e6b7b0c375cb277df7099544f485d (diff) |
Apply the Polyline constructor refactoring to the newslice code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Slic3r/TriangleMesh.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Slic3r/TriangleMesh.pm b/lib/Slic3r/TriangleMesh.pm index 329070617..5f58d0e20 100644 --- a/lib/Slic3r/TriangleMesh.pm +++ b/lib/Slic3r/TriangleMesh.pm @@ -233,7 +233,7 @@ sub make_loops { if ((defined $loop[0][I_EDGE_A_ID] && defined $loop[-1][I_EDGE_B_ID] && $loop[0][I_EDGE_A_ID] == $loop[-1][I_EDGE_B_ID]) || (defined $loop[0][I_A_ID] && defined $loop[-1][I_B_ID] && $loop[0][I_A_ID] == $loop[-1][I_B_ID])) { # loop is complete! - push @polygons, Slic3r::Polygon->new([ map $_->[I_A], @loop ]); + push @polygons, Slic3r::Polygon->new(map $_->[I_A], @loop); Slic3r::debugf " Discovered %s polygon of %d points\n", ($polygons[-1]->is_counter_clockwise ? 'ccw' : 'cw'), scalar(@{$polygons[-1]}) if $Slic3r::debug; |