Skip to content

Commit 643a712

Browse files
committed
Fix useless Z move before switching layer
CURA-12268 This was introduced while moving positions to 3D points. The Z offset of the travel move now has to be correct, otherwise we will move the nozzle up for next layer, then move back down for the travel move, then move up again when actually starting to print.
1 parent 7a327d4 commit 643a712

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LayerPlan.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,6 +2748,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode)
27482748
gcode.writeTravel(current_position, extruder.settings_.get<Velocity>("speed_z_hop"));
27492749

27502750
// Prevent the final travel(s) from resetting to the 'previous' layer height.
2751+
path.z_offset = final_travel_z_ - z_;
27512752
gcode.setZ(final_travel_z_);
27522753
}
27532754
for (size_t point_idx = 0; point_idx + 1 < path.points.size(); point_idx++)

0 commit comments

Comments
 (0)