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

[PCB Draw Helpers][Fix] Wrong assertion for draw_poly #749

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kibot/kicad/pcb_draw_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def draw_text(g, x, y, text, h, w, layer, bold=False, alignment=GR_TEXT_HJUSTIFY


def draw_poly(g, points, layer, filled=False, line_w=10000):
assert not points or len(points) < 3, "A polygon requires at least 3 points"
assert points or len(points) < 3, "A polygon requires at least 3 points"
sps = pcbnew.SHAPE_POLY_SET()
chain = pcbnew.SHAPE_LINE_CHAIN()
for (x, y) in points:
Expand Down
Loading