Skip to content

Commit deb6122

Browse files
committed
Always fill the zones
1 parent bb0c71f commit deb6122

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -241,18 +241,6 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
241241
else:
242242
board.Save(board.GetFileName())
243243

244-
# Check if user wants to build zone fills
245-
if wx.GetApp() is not None:
246-
resp = wx.MessageBox("Do you want to build the zone fills?",
247-
'Fill zones?', wx.YES_NO | wx.ICON_INFORMATION)
248-
if resp == wx.YES:
249-
report += "Zones filled by user.\n"
250-
fillerTool = pcbnew.ZONE_FILLER(board)
251-
fillerTool.Fill(board.Zones())
252-
else:
253-
fillerTool = pcbnew.ZONE_FILLER(board)
254-
fillerTool.Fill(board.Zones())
255-
256244
if board is None:
257245
report += "Could not load board. Quitting.\n"
258246
sysExit = 2
@@ -390,6 +378,12 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
390378
sysExit = 2
391379
return sysExit, report
392380

381+
# Fill the zones
382+
# This prevents badness with pads on "F.Cu, B.Cu and connected layers" and "Connected layers only"
383+
report += "Zones filled by Panelizer.\n"
384+
fillerTool = pcbnew.ZONE_FILLER(board)
385+
fillerTool.Fill(board.Zones())
386+
393387
# Get dimensions of board
394388
# Note: the bounding box width and height _include_ the Edge.Cuts line width.
395389
# We will subtract it.

0 commit comments

Comments
 (0)