Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hobby should only return a straight line for two points if close: false #462

Closed
Enivex opened this issue Jan 17, 2024 · 0 comments · Fixed by #468
Closed

Hobby should only return a straight line for two points if close: false #462

Enivex opened this issue Jan 17, 2024 · 0 comments · Fixed by #468
Assignees
Labels
bug 🐛 Something isn't working core:draw ✏️
Milestone

Comments

@Enivex
Copy link

Enivex commented Jan 17, 2024

Because of the following code

if points.len() == 2 {
    let (a, b) = points
    return ((a, b, a, b),)
  }

hobby will always draw a straight line with two points given. But this should only happen if close: false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working core:draw ✏️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants