From d791315b4a0f665034a375b098dbd1c8fbc6fa5f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 31 Mar 2012 18:32:53 +0200 Subject: [PATCH] Bugfix: fatal error when generating skirt for layers having only two-point thin walls. #295 --- lib/Slic3r/Print.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index e3a2100cd8..497f6b3a7f 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -338,7 +338,7 @@ sub extrude_skirt { (map @$_, map @{$_->thin_walls}, @layers), (map @{$_->polyline}, map @{$_->support_fills->paths}, grep $_->support_fills, @layers), ); - return if !@points; + return if @points < 3; # at least three points required for a convex hull # duplicate points to take copies into account my @all_points = map move_points($_, @points), @{$self->copies};