Skip to content

Commit

Permalink
Do not refill zones if there are none to refill
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Oct 29, 2024
1 parent 309b937 commit 7a731d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kikit/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,10 @@ def save(self, reconstructArcs: bool=False, refillAllZones: bool=False,
if zName.startswith("KIKIT_zone_"):
zonesToRefill.append(zone)
zone.SetZoneName(originalZoneNames[zName])
fillerTool.Fill(zonesToRefill)
if len(zonesToRefill) > 0:
# Even if there are no zones to refill, the refill algorithm takes
# non-trivial time to compute, hence, skip it.
fillerTool.Fill(zonesToRefill)

fillBoard.Save(self.filename)
self._adjustPageSize()
Expand Down

0 comments on commit 7a731d8

Please sign in to comment.