mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-14 11:25:56 +08:00
FIX: should consider plate offset in wipe tower
Updating position to gcode writer in wipe tower miss plate offset. This is handling for github issue #2256 github: github issue #2256 Signed-off-by: salt.wei <salt.wei@bambulab.com> Change-Id: I915591ee919d10bb5bd2c2dcd5f1e98fd4b66503
This commit is contained in:
parent
d9a8526843
commit
a35264e910
@ -599,7 +599,7 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
|
||||
}
|
||||
|
||||
// A phony move to the end position at the wipe tower.
|
||||
gcodegen.writer().travel_to_xy(end_pos.cast<double>());
|
||||
gcodegen.writer().travel_to_xy((end_pos + plate_origin_2d).cast<double>());
|
||||
gcodegen.set_last_pos(wipe_tower_point_to_object_point(gcodegen, end_pos + plate_origin_2d));
|
||||
if (!is_approx(z, current_z)) {
|
||||
gcode += gcodegen.writer().retract();
|
||||
|
Loading…
x
Reference in New Issue
Block a user