Skip to content

Commit

Permalink
Preserve wildcard copper layers when flipping
Browse files Browse the repository at this point in the history
  • Loading branch information
wez authored and dvc94ch committed Apr 17, 2018
1 parent 8d718aa commit e0de88e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pykicad/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def list_all_modules():

def flip_layer(layer):
side, layer = layer.split('.')
side = 'B' if side == 'F' else 'B'
if side != '*':
side = 'B' if side == 'F' else 'B'
return side + '.' + layer


Expand Down

0 comments on commit e0de88e

Please sign in to comment.