diff --git a/kikit/panelize.py b/kikit/panelize.py index 4bbb037f..c716c66e 100644 --- a/kikit/panelize.py +++ b/kikit/panelize.py @@ -1815,6 +1815,10 @@ def buildFullTabs(self, cutoutDepth: KiLength, patchCorners: bool = True) \ return cuts + def inheritLayerNames(self, board): + for layer in pcbnew.LSET.AllLayersMask().Seq(): + name = board.GetLayerName(layer) + self.board.SetLayerName(layer, name) def inheritCopperLayers(self, board): """ diff --git a/kikit/panelize_ui.py b/kikit/panelize_ui.py index 0c6fa9ea..2e642f3a 100644 --- a/kikit/panelize_ui.py +++ b/kikit/panelize_ui.py @@ -258,6 +258,7 @@ def doPanelization(input, output, preset, plugins=[]): panel.inheritDesignSettings(board) panel.inheritProperties(board) panel.inheritTitleBlock(board) + panel.inheritLayerNames(board) useHookPlugins(lambda x: x.afterPanelSetup(panel)) @@ -344,6 +345,7 @@ def separate(input, output, source, page, debug, keepannotations, preservearcs): panel.inheritDesignSettings(board) panel.inheritProperties(board) panel.inheritTitleBlock(board) + panel.inheritLayerNames(board) destination = VECTOR2I(150 * mm, 100 * mm) panel.appendBoard(input, destination, sourceArea,