Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURA-12245 fix spiralize mode #2161

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/LayerPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2664,14 +2664,14 @@ void LayerPlan::writeGCode(GCodeExport& gcode)
const Point2LL p1 = spiral_path.points[point_idx].toPoint2LL();
length += vSizeMM(p0 - p1);
p0 = p1;
gcode.setZ(std::round(z_ + layer_thickness_ * length / totalLength));

const coord_t z_offset = std::round(layer_thickness_ * length / totalLength);
const double extrude_speed = speed * spiral_path.speed_back_pressure_factor;
writeExtrusionRelativeZ(
gcode,
spiral_path.points[point_idx],
extrude_speed,
path.z_offset,
path.z_offset + z_offset,
spiral_path.getExtrusionMM3perMM(),
spiral_path.config.type,
update_extrusion_offset);
Expand Down