summaryrefslogtreecommitdiff
path: root/gerbonara/cad
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/cad')
-rw-r--r--gerbonara/cad/kicad/footprints.py5
-rw-r--r--gerbonara/cad/kicad/primitives.py2
2 files changed, 1 insertions, 6 deletions
diff --git a/gerbonara/cad/kicad/footprints.py b/gerbonara/cad/kicad/footprints.py
index 24488f4..82c0d62 100644
--- a/gerbonara/cad/kicad/footprints.py
+++ b/gerbonara/cad/kicad/footprints.py
@@ -612,14 +612,9 @@ class Footprint:
def __after_parse__(self, parent):
- self.properties = {prop.key: prop for prop in self.properties}
-
for pad in self.pads:
pad.footprint = self
- def __before_sexp__(self):
- self.properties = list(self.properties.values())
-
def property_value(self, key, default=_MISSING):
if default is not _MISSING and key not in self.properties:
return default
diff --git a/gerbonara/cad/kicad/primitives.py b/gerbonara/cad/kicad/primitives.py
index f066e15..40cb22c 100644
--- a/gerbonara/cad/kicad/primitives.py
+++ b/gerbonara/cad/kicad/primitives.py
@@ -81,7 +81,7 @@ class Zone:
connect_pads: PadConnection = field(default_factory=PadConnection)
min_thickness: Named(float) = 0.254
filled_areas_thickness: Named(YesNoAtom()) = True
- keepouts: List(ZoneKeepout) = field(default_factory=list)
+ keepout: ZoneKeepout = field(default_factory=ZoneKeepout)
fill: ZoneFill = field(default_factory=ZoneFill)
polygon: ZonePolygon = field(default_factory=ZonePolygon)
fill_polygons: List(FillPolygon) = field(default_factory=list)