Prohibit Z move before the very first travel move #1962

Open
opened 2026-04-05 21:48:11 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @kisslorand on 10/9/2025

Description

If Z hop is active and set to Normal than Orca would create a Z move before the very first travel move. It could lower the nozzle too close to the bed. The setting of Z height before the start of print is the responsibility of the user to set in the start gcode.
This PR fixes it, preventing Z moves if the nozzle height is not known by the slicer.

Fixes #10964

Screenshots/Recordings/Graphs

Before:

;_SET_FAN_SPEED_CHANGING_LAYER
G1 Z.6 F9000 ; normal lift Z
G1 X112.64 Y98.866 ; move to first skirt point
G1 Z.6 ; move to first skirt point

After:

;_SET_FAN_SPEED_CHANGING_LAYER
G1 X112.64 Y98.866 F9000 ; move to first skirt point
G1 Z.6 ; move to first skirt point

Tests

Local build, slicing the test object from #10964

*Originally created by @kisslorand on 10/9/2025* # Description If Z hop is active and set to `Normal` than Orca would create a Z move before the very first travel move. It could lower the nozzle too close to the bed. The setting of Z height before the start of print is the responsibility of the user to set in the start gcode. This PR fixes it, preventing Z moves if the nozzle height is not known by the slicer. Fixes #10964 # Screenshots/Recordings/Graphs Before: ``` ;_SET_FAN_SPEED_CHANGING_LAYER G1 Z.6 F9000 ; normal lift Z G1 X112.64 Y98.866 ; move to first skirt point G1 Z.6 ; move to first skirt point ``` After: ``` ;_SET_FAN_SPEED_CHANGING_LAYER G1 X112.64 Y98.866 F9000 ; move to first skirt point G1 Z.6 ; move to first skirt point ``` ## Tests Local build, slicing the test object from #10964
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#1962