Skip to content

Commit 2f948e1

Browse files
committed
Fix polygon->path closure condition
1 parent 6482403 commit 2f948e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data_classes/ElementPolygon.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func get_replacement(new_element: String) -> Element:
7474
commands.append(PathCommand.MoveCommand.new(list[0], list[1]))
7575
for i in range(3, list.size(), 2):
7676
commands.append(PathCommand.LineCommand.new(list[i - 1], list[i]))
77-
if list.size() > 5:
77+
if list.size() > 3:
7878
commands.append(PathCommand.CloseCommand.new())
7979
element.set_attribute("d", commands)
8080
apply_to(element, dropped_attributes)

0 commit comments

Comments
 (0)