Fix a regression issue that retraction is not correct when wipe is off

Fix #2697
This commit is contained in:
SoftFever 2023-11-12 01:17:44 +08:00
parent da4e7817a8
commit 15358b211d
3 changed files with 2 additions and 3 deletions

View file

@ -710,7 +710,7 @@ static std::vector<Vec2d> get_path_of_change_filament(const Print& print)
if (is_ramming)
gcodegen.m_wipe.reset_path(); // We don't want wiping on the ramming lines.
toolchange_gcode_str = gcodegen.set_extruder(new_extruder_id, tcr.print_z); // TODO: toolchange_z vs print_z
if (gcodegen.config().has_prime_tower)
if (gcodegen.config().enable_prime_tower)
deretraction_str = gcodegen.unretract();
}