From 309b937551146aabb3d5af3edcc21d94f3969d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Fri, 11 Oct 2024 07:32:42 +0200 Subject: [PATCH] Fix edge detection when the layer is renamed --- kikit/panelize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kikit/panelize.py b/kikit/panelize.py index c80f7249..b758a9fa 100644 --- a/kikit/panelize.py +++ b/kikit/panelize.py @@ -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): """