Skip to content

Commit 0c3f3be

Browse files
committed
Refill the zones _after_ panelizing
1 parent 0d528d8 commit 0c3f3be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,12 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
12081208
titleblock_text.SetTextAngle(pcbnew.EDA_ANGLE(-900, pcbnew.TENTHS_OF_A_DEGREE_T))
12091209
board.Add(titleblock_text)
12101210

1211+
# Finally, refill the zones
1212+
# This prevents the badness reported in #21
1213+
report += "Zones filled by Panelizer.\n"
1214+
fillerTool = pcbnew.ZONE_FILLER(board)
1215+
fillerTool.Fill(board.Zones())
1216+
12111217
# Save output
12121218
board.SetFileName(panelOutputFile)
12131219
board.Save(panelOutputFile)

0 commit comments

Comments
 (0)