mvnmgrx / kiutils

Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
GNU General Public License v3.0
84 stars 27 forks source link

Fix: Zones on only outer layers produce wrong S-Expression for the `layer` token #89

Closed JJendryka closed 1 year ago

JJendryka commented 1 year ago

When zone is enabled for, and only for Top and Bottom layers, KiCAD uses special "F&B.Cu" layer name instead of two layers: "F.Cu" and "B.Cu". This causes issues during serialization, as KiCAD requires "layers" token when combined with "F&B.Cu", not "layer". When this name is set incorrectly KiCAD segfaults.

mvnmgrx commented 1 year ago

Thanks for your contribution! I will add a simple test case for this as well.