From 2aa786c95fabd280a2fc849f1cb6b8b32cb9b069 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 26 Mar 2012 19:47:21 +0200 Subject: [PATCH] Bugfix: extrude_skirt() was assuming that a copy existed at 0,0 (not harmful but incorrect) --- lib/Slic3r/Print.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 448d633f6..23623e5e1 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -341,10 +341,10 @@ sub extrude_skirt { return if !@points; # duplicate points to take copies into account - push @points, map move_points($_, @points), @{$self->copies}; + my @all_points = map move_points($_, @points), @{$self->copies}; # find out convex hull - my $convex_hull = convex_hull(\@points); + my $convex_hull = convex_hull(\@all_points); # draw outlines from outside to inside my @skirts = ();