From 70f454c69375ab983ef5cb7d3b6a64ccbf61be09 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 25 Dec 2014 11:06:42 +0100 Subject: [PATCH] Fixed regression in inwards move --- lib/Slic3r/GCode.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 6f6ba2dab1..63cecb3332 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -214,10 +214,10 @@ sub extrude_loop { # create the destination point along the first segment and rotate it # we make sure we don't exceed the segment length because we don't know # the rotation of the second segment so we might cross the object boundary - my $first_segment = Slic3r::Line->new(@$last_path_polyline[0,1]); + my $first_segment = Slic3r::Line->new(@{$paths[0]->polyline}[0,1]); my $distance = min(scale($self->config->get_at('nozzle_diameter', $self->writer->extruder->id)), $first_segment->length); my $point = $first_segment->point_at($distance); - $point->rotate($angle, $last_path_polyline->first_point); + $point->rotate($angle, $first_segment->a); # generate the travel move $gcode .= $self->travel_to($point, $paths[-1]->role, "move inwards before travel");