Skip to content

Commit

Permalink
Fix crash on polygons without footprints
Browse files Browse the repository at this point in the history
Fixes #26
  • Loading branch information
qu1ck committed Aug 7, 2018
1 parent 4bd8d7b commit cba32ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion InteractiveHtmlBom/generate_interactive_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,13 @@ def parse_draw_segment(d):
else:
print "Polygons not supported for KiCad 4"
polygons = []
angle = 0
if d.GetParentModule() is not None:
angle = d.GetParentModule().GetOrientation() * 0.1,
return {
"type": shape,
"pos": start,
"angle": d.GetParentModule().GetOrientation() * 0.1,
"angle": angle,
"polygons": polygons
}

Expand Down

0 comments on commit cba32ae

Please sign in to comment.