Refill all zone/area after via placing

This commit is contained in:
Jean-Samuel Reynaud
2017-06-12 10:07:44 +02:00
parent 65296cb5e5
commit 3b72073e99

View File

@ -379,6 +379,13 @@ class FillArea:
self.AddModule(module,wxPoint(origin.x + (self.step * x) + ran_x,
origin.y + (self.step * y) + ran_y),x,y)
for i in range(self.pcb.GetAreaCount()):
area = self.pcb.GetArea(i)
area.ClearFilledPolysList()
area.UnFill()
if not area.GetIsKeepout():
area.BuildFilledSolidAreasPolygons(self.pcb)
if self.filename:
self.pcb.Save(self.filename)
self.CleanupFootprint()