mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:15:53 +08:00
Fix of previous commit.
This commit is contained in:
parent
4580e69d86
commit
d86e4169de
@ -3119,9 +3119,9 @@ std::string GCodeGenerator::_extrude(
|
|||||||
radius = GCodeFormatter::quantize_xyzf(radius);
|
radius = GCodeFormatter::quantize_xyzf(radius);
|
||||||
} else {
|
} else {
|
||||||
// Calculate quantized IJ circle center offset.
|
// Calculate quantized IJ circle center offset.
|
||||||
ij = GCodeFormatter::quantize(
|
ij = GCodeFormatter::quantize(Vec2d(
|
||||||
Geometry::ArcWelder::arc_center(prev.cast<double>(), p.cast<double>(), double(radius), it->ccw())
|
Geometry::ArcWelder::arc_center(prev.cast<double>(), p.cast<double>(), double(radius), it->ccw())
|
||||||
- prev);
|
- prev));
|
||||||
if (ij == Vec2d::Zero())
|
if (ij == Vec2d::Zero())
|
||||||
// Don't extrude a degenerated circle.
|
// Don't extrude a degenerated circle.
|
||||||
radius = 0;
|
radius = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user