diff options
author | jaseg <git@jaseg.de> | 2024-07-19 19:22:56 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-07-19 19:22:56 +0200 |
commit | 67ce4af95703a682f7278e62f5d81f5d1c8c4bb2 (patch) | |
tree | 5a9a93e0464d278062ad77dba54b4fff372f56c5 /gerbonara/cad/kicad/pcb.py | |
parent | eadd250ee3230753c4d3d013751324878e84345e (diff) | |
download | gerbonara-67ce4af95703a682f7278e62f5d81f5d1c8c4bb2.tar.gz gerbonara-67ce4af95703a682f7278e62f5d81f5d1c8c4bb2.tar.bz2 gerbonara-67ce4af95703a682f7278e62f5d81f5d1c8c4bb2.zip |
kicad: Fix bug in footprint search
Diffstat (limited to 'gerbonara/cad/kicad/pcb.py')
-rw-r--r-- | gerbonara/cad/kicad/pcb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/cad/kicad/pcb.py b/gerbonara/cad/kicad/pcb.py index fce4d0e..6bbcad1 100644 --- a/gerbonara/cad/kicad/pcb.py +++ b/gerbonara/cad/kicad/pcb.py @@ -662,9 +662,9 @@ class Board: for fp in self.footprints: if name and not match_filter(name, fp.name): continue - if value and not match_filter(value, fp.properties.get('value', '')): + if value and not match_filter(value, fp.value): continue - if reference and not match_filter(reference, fp.properties.get('reference', '')): + if reference and not match_filter(reference, fp.reference): continue if net and not any(pad.net and match_filter(net, pad.net.name) for pad in fp.pads): continue |