allow extra wipe for 1-perimeter configs

supermerill/superslicer#2029
This commit is contained in:
supermerill 2021-12-09 18:17:11 +01:00
parent a5aa9ffab8
commit 5f8d634fc1

View File

@ -3318,7 +3318,7 @@ std::string GCode::extrude_loop(const ExtrusionLoop &original_loop, const std::s
m_wipe.path = paths.front().polyline; // TODO: don't limit wipe to last path
//wipe for External Perimeter
if (paths.back().role() == erExternalPerimeter && m_layer != NULL && m_config.perimeters.value > 1 && paths.front().size() >= 2 && paths.back().polyline.points.size() >= 2) {
if (paths.back().role() == erExternalPerimeter && m_layer != NULL && m_config.perimeters.value > 0 && paths.front().size() >= 2 && paths.back().polyline.points.size() >= 2) {
//get points for wipe
Point prev_point = *(paths.back().polyline.points.end() - 2); // second to last point
// *(paths.back().polyline.points.end() - 2) this is the same as (or should be) as paths.front().first_point();