From c57a88c9436d62f82f0cc96d048f66608aa6b140 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 7 Jul 2013 19:10:50 +0200 Subject: start_perimeters_at_non_overhang was still partially enforced --- lib/Slic3r/GCode.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index d4e498a9f..fa61e259b 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -168,8 +168,9 @@ sub extrude_loop { @candidates = @concave; if (!@candidates) { # if none, look for any non-overhang vertex - @candidates = grep !Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs), - @{$loop->polygon}; + if ($Slic3r::Config->start_perimeters_at_non_overhang) { + @candidates = grep !Boost::Geometry::Utils::point_covered_by_multi_polygon($_, $self->_layer_overhangs), @{$loop->polygon}; + } if (!@candidates) { # if none, all points are valid candidates @candidates = @{$loop->polygon}; -- cgit v1.2.3