mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-29 16:36:01 -05:00
After a filament change on a Type 1 wipe tower with "Skip points" on, the travel back to the tower started from `gcode_last_pos`, which was never initialised. An axis the change G-code doesn't move kept whatever was on the stack, so the route could cut across the tower or go the long way round, and the same slice could give different G-code between runs. That axis now starts at the head's last tracked position from before the change G-code. This changes slices on the Bambu Lab A2L, H2C, P2S and X2D and the Qidi Q2 and Q2C, and adds a regression test to `test_wipe_tower.cpp`.
OrcaSlicer tests
Building, running and writing tests is documented on the wiki, under How to Test.
Two files here rather than there, because coding agents only read what is in the repository: