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

AntialiasedPolygon2D - polygon setter not working #6

Closed
klianc09 opened this issue Dec 28, 2022 · 1 comment
Closed

AntialiasedPolygon2D - polygon setter not working #6

klianc09 opened this issue Dec 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@klianc09
Copy link

Setting the 'polygon' property on a AntialiasedPolygon2D (or AntialiasedRegularPolygon2D) can (and will) result in an error.
$polygon2d.polygon = points

This is due to the setter in 'antialiased_polygon2d.gd' accessing the old value instead of the new value.

changing
line_2d.points = AntialiasedLine2D.construct_closed_line(polygon)
to
line_2d.points = AntialiasedLine2D.construct_closed_line(value)
will fix this.
(same with AntialiasedRegularPolygon2D)

@Calinou Calinou added the bug Something isn't working label Dec 29, 2022
@Calinou
Copy link
Member

Calinou commented Dec 29, 2022

Fixed by c7cde89.

@Calinou Calinou closed this as completed Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants