Quantization of G-code export to achieve more precise extrusion
    width control.
Fix of wiping.
This commit is contained in:
Vojtech Bubnik 2022-02-09 15:30:11 +01:00
parent 199dc121a5
commit 5ed364910b

View File

@ -174,7 +174,7 @@ namespace Slic3r {
gcode += ";" + GCodeProcessor::reserved_tag(GCodeProcessor::ETags::Wipe_Start) + "\n";
auto end = this->path.points.end();
bool done = false;
for (; it != end; ++ it) {
for (; it != end && ! done; ++ it) {
p = gcodegen.point_to_gcode_quantized(*it);
double segment_length = (p - prev).norm();
double dE = GCodeFormatter::quantize_e(xy_to_e * segment_length);