Skip to content

Commit be86628

Browse files
committed
Fix polygon fill detection on kicad v10
Fixes #543
1 parent 2143e3c commit be86628

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ def parse_shape(self, d):
223223
"angle": angle,
224224
"polygons": polygons
225225
}
226-
if hasattr(d, "IsFilled") and not d.IsFilled():
226+
if ((hasattr(d, "IsFilled") and not d.IsFilled()) or
227+
(hasattr(d, "IsSolidFill") and not d.IsSolidFill())):
227228
shape_dict["filled"] = 0
228229
shape_dict["width"] = d.GetWidth() * 1e-6
229230
return shape_dict

0 commit comments

Comments
 (0)