Use match_string for more selective power
This commit is contained in:
parent
b946e519fb
commit
5c88dec5bc
|
|
@ -93,7 +93,8 @@ class Rot_Footprint(BaseFilter): # noqa: F821
|
|||
""" Apply the rotation """
|
||||
for regex, angle in self._rot:
|
||||
side = "_bottom" if comp.bottom else "_top"
|
||||
if regex.search(comp.footprint) or regex.search(side):
|
||||
match_string = comp.footprint + side
|
||||
if regex.search(match_string):
|
||||
old_angle = comp.footprint_rot
|
||||
if self.negative_bottom and comp.bottom:
|
||||
comp.footprint_rot -= angle
|
||||
|
|
|
|||
Loading…
Reference in New Issue