Skip to content

Commit

Permalink
Fix setters in AntialiasedPolygon2D and AntialiasedRegularPolygon2D
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinou committed Dec 29, 2022
1 parent a6224b6 commit c7cde89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- [Fix AntialiasedPolygon2D and AntialiasedRegularPolygon2D setters not working.](https://github.com/godot-extended-libraries/godot-antialiased-line2d/issues/6)

## [1.1.1] - 2022-06-26

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion addons/antialiased_line2d/antialiased_polygon2d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func _ready() -> void:

func _set(property: String, value) -> bool:
if property == "polygon":
line_2d.points = AntialiasedLine2D.construct_closed_line(polygon)
line_2d.points = AntialiasedLine2D.construct_closed_line(value)
return false


Expand Down
2 changes: 1 addition & 1 deletion addons/antialiased_line2d/antialiased_regular_polygon2d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func _ready() -> void:

func _set(property: String, value) -> bool:
if property == "polygon":
line_2d.points = AntialiasedLine2D.construct_closed_line(polygon)
line_2d.points = AntialiasedLine2D.construct_closed_line(value)
return false


Expand Down

0 comments on commit c7cde89

Please sign in to comment.