Skip to content

Commit aa9b651

Browse files
authored
CURA-12268 Fix useless Z move before switching layer (#2169)
2 parents c4ce927 + 643a712 commit aa9b651

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)