fix(build): convert Points3 to 2D Points for wipe path construction in extrude_path

This commit is contained in:
thysson2701
2026-07-21 22:25:15 +02:00
parent a5840f12a8
commit bc40e58f6e

View File

@@ -10669,7 +10669,12 @@ std::string GCode::extrude_path(ExtrusionPath path, std::string description, dou
if (dist < min_dist) min_dist = dist;
if (min_dist < scale_(0.2) && dist > min_dist) break;
}
m_wipe.path = Polyline(Points(path.polyline.points.begin() + i - 1, path.polyline.points.end()));
{
Points wipe_pts;
for (auto it = path.polyline.points.begin() + i - 1; it != path.polyline.points.end(); ++it)
wipe_pts.emplace_back(it->to_point());
m_wipe.path = Polyline(std::move(wipe_pts));
}
}
} else
m_wipe.path.reverse();