From 67ce4af95703a682f7278e62f5d81f5d1c8c4bb2 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 19 Jul 2024 19:22:56 +0200 Subject: kicad: Fix bug in footprint search --- gerbonara/cad/kicad/pcb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gerbonara/cad/kicad/pcb.py') 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 -- cgit