Use match_string for more selective power

This commit is contained in:
Frank Leon Rose 2021-04-07 08:33:37 -04:00
parent b946e519fb
commit 5c88dec5bc
1 changed files with 2 additions and 1 deletions

View File

@ -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