Wipe toward the Type1 prime tower on every plate

After a toolchange on the Type1 prime tower, the wipe path was built in
plate coordinates while the nozzle position includes the plate origin.
On every plate but the first, the wipe that ends the toolchange headed
toward the first plate instead of along the tower. The Type2 tower and
the nozzle change path already add the plate origin.

Found through Snapmaker/OrcaSlicer@407dc6f68e,
which adds the plate origin to the same wipe in the fork's version of
the Type2 path.

Co-authored-by: fire2wind <1229725087@qq.com>
This commit is contained in:
Ian Bassiandfire2wind committed 2026-11-30 14:27:08 -03:00
1 parent 1f88152936
commit 99b70ef82f
2 files changed
+47 -1

No files matched your search

+1 -1
View File
@@ -1660,7 +1660,7 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
// Prepare a future wipe.
gcodegen.m_wipe.reset_path();
for (const Vec2f &wipe_pt : tcr.wipe_path)
gcodegen.m_wipe.path.points.emplace_back(wipe_tower_point_to_object_point(gcodegen, transform_wt_pt(wipe_pt)));
gcodegen.m_wipe.path.points.emplace_back(wipe_tower_point_to_object_point(gcodegen, transform_wt_pt(wipe_pt) + plate_origin_2d));
gcode += gcodegen.retract(false, false, auto_lift_type, true);
}