Skip to content

Commit

Permalink
Fix invalid circle gen with ellipse tool
Browse files Browse the repository at this point in the history
Closes #28
  • Loading branch information
epilys committed Mar 21, 2023
1 parent 605515d commit 2057bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/tools/shapes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ fn make_circle_bezier_curves(curves: &mut [Bezier; 4], (center, radius): (Point,
curves[2].modify_point(0, |cp| {
cp.position = last_point;
});
last_point = curves[3].points()[3].position;
last_point = curves[2].points()[3].position;

curves[3].modify_point(0, |cp| {
cp.position = last_point;
Expand Down

0 comments on commit 2057bb0

Please sign in to comment.