Skip to content

Commit

Permalink
Fix edge detection when the layer is renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Oct 11, 2024
1 parent 46b2ea9 commit 309b937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def isBoardEdge(edge):
The rule is: all drawings on Edge.Cuts layer are edges.
"""
return isinstance(edge, pcbnew.PCB_SHAPE) and edge.GetLayerName() == "Edge.Cuts"
return isinstance(edge, pcbnew.PCB_SHAPE) and edge.GetLayer() == pcbnew.Edge_Cuts

def tabSpacing(width, count):
"""
Expand Down

0 comments on commit 309b937

Please sign in to comment.