Only make the inwards move when we have more than one perimeter

This commit is contained in:
Alessandro Ranellucci 2013-05-13 19:35:42 +02:00
parent 7c89476602
commit ece6dd8a0b

View File

@ -156,7 +156,7 @@ sub extrude_loop {
$self->wipe_path($extrusion_path->polyline);
# make a little move inwards before leaving loop
if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER) {
if ($loop->role == EXTR_ROLE_EXTERNAL_PERIMETER && $Slic3r::Config->perimeters > 1) {
# detect angle between last and first segment
# the side depends on the original winding order of the polygon (left for contours, right for holes)
my @points = $was_clockwise ? (-2, 1) : (1, -2);