mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 06:45:56 +08:00
ArcWelder: Hot fix for producing extremely short arches, that get
quantized to zero length by the G-code export.
This commit is contained in:
parent
361ef22b6d
commit
9824d0e4cc
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user