ArcWelder: Hot fix for producing extremely short arches, that get

quantized to zero length by the G-code export.
This commit is contained in:
Vojtech Bubnik 2023-09-19 13:53:38 +02:00
parent 361ef22b6d
commit 9824d0e4cc

View File

@ -3075,6 +3075,8 @@ std::string GCodeGenerator::_extrude(
const bool emit_radius = m_config.arc_fitting == ArcFittingType::EmitRadius;
for (++ it; it != end; ++ it) {
Vec2d p = this->point_to_gcode_quantized(it->point);
assert(p != prev);
if (p != prev) {
// Center of the radius to be emitted into the G-code: Either by radius or by center offset.
double radius = 0;
Vec2d ij;
@ -3115,6 +3117,7 @@ std::string GCodeGenerator::_extrude(
}
prev = p;
}
}
if (m_enable_cooling_markers)
gcode += path_attr.role.is_bridge() ? ";_BRIDGE_FAN_END" : ";_EXTRUDE_END";