Skip to content

Commit

Permalink
CURA-12268 Fix useless Z move before switching layer (#2169)
Browse files Browse the repository at this point in the history
  • Loading branch information
HellAholic authored Nov 11, 2024
2 parents c4ce927 + 643a712 commit aa9b651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2748,6 +2748,7 @@ void LayerPlan::writeGCode(GCodeExport& gcode)
gcode.writeTravel(current_position, extruder.settings_.get<Velocity>("speed_z_hop"));

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

0 comments on commit aa9b651

Please sign in to comment.