From 190875d3dfebcddf7c3dc2176e7463ea23e98a0e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 19 May 2012 20:47:29 +0200 Subject: [PATCH] Debugging statement left in --- lib/Slic3r/Geometry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Geometry.pm b/lib/Slic3r/Geometry.pm index df77ca7d4..989f98659 100644 --- a/lib/Slic3r/Geometry.pm +++ b/lib/Slic3r/Geometry.pm @@ -714,7 +714,7 @@ sub angle3points { sub polyline_remove_parallel_continuous_edges { my ($points, $isPolygon) = @_; - use XXX; ZZZ $points if !eval {@$points}; + for (my $i = $isPolygon ? 0 : 2; $i <= $#$points && @$points >= 3; $i++) { if (Slic3r::Geometry::lines_parallel([$points->[$i-2], $points->[$i-1]], [$points->[$i-1], $points->[$i]])) { # we can remove $points->[$i-1]