mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 23:29:38 -05:00
* Travel back from a lift at the lifted height, then descend After a tool change on the Bambu Lab prime tower, the nozzle is lifted at the tower and then travels to the next object. That travel is forced to set the layer Z, which sent it down the final branch of travel_to_xyz(): it cancelled the lift and emitted one combined XYZ move, so the nozzle sank over the print and left color streaks. When the nozzle is lifted and the target is lower, move in XY first and descend at the target, as the branch already does after a filament change. Fixes #14968 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep a lifted nozzle up over every travel that descends to the print A multi-point avoid-crossing or exclusion-volume travel now stays at the lifted height and descends only at its last point. The split descent also covers printers with an axis remap, takes its Z move from the target position, and is skipped when X and Y do not change. The test parses with GCodeReader and runs with arc fitting both off and on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Check exclusion volumes from the height a lifted nozzle travels at Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Merge the lifted and multi-point travel branches into one loop The 2-point travel, the lifted detour and the avoid-crossing detour now share one loop; a detour only moves to the layer height at its first point when the nozzle is not staying lifted. A new test lifts at each layer change of a concave part with avoid crossing walls on, so lifted detours of more than two points are checked for a nozzle that comes down before the end. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep an exclusion-volume detour lifted when its lift is still pending A retraction leaves its lift pending until the first leg of the travel. The interpolated-Z detour only checked for a lift already made, so it lifted on the first leg and then lowered at each later waypoint. A lift the first leg will make now skips the interpolation, so the detour stays lifted and descends at its last point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Kris Austin <kris.austin@gmail.com>