diff options
Diffstat (limited to 'ArcWelder/segmented_shape.cpp')
-rw-r--r-- | ArcWelder/segmented_shape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArcWelder/segmented_shape.cpp b/ArcWelder/segmented_shape.cpp index d9041eb..65995b4 100644 --- a/ArcWelder/segmented_shape.cpp +++ b/ArcWelder/segmented_shape.cpp @@ -410,7 +410,7 @@ bool arc::try_create_arc( // We may be traveling in 3 space, calculate the arc_length of the spiral if (start_point.z != end_point.z) { - test_arc_length = utilities::hypot(arc_length, end_point.z - start_point.z); + test_arc_length = utilities::hypot(test_arc_length, end_point.z - start_point.z); } } difference = (test_arc_length - approximate_length) / approximate_length; |