fix(build): convert Points3 to 2D Points for wipe path construction in extrude_path
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user