Bugfix: fatal error when generating skirt for layers having only two-point thin walls. #295

This commit is contained in:
Alessandro Ranellucci 2012-03-31 18:32:53 +02:00
parent 1355833cbf
commit d791315b4a

View file

@ -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};