moved vias delete print function under debug section

This commit is contained in:
Cristi Marius Tiutiu
2017-06-12 14:24:22 +03:00
parent 5c5166c46e
commit 5f27d7bfcf

View File

@ -216,11 +216,12 @@ class FillArea:
if self.delete_vias: if self.delete_vias:
for module in self.pcb.GetModules(): for module in self.pcb.GetModules():
if self.debug:
print("* Deleting module: %s" % module.GetValue()) print("* Deleting module: %s" % module.GetValue())
if module.GetValue() == "AUTO_VIA": if module.GetValue() == "AUTO_VIA":
self.pcb.DeleteNative(module) self.pcb.DeleteNative(module)
self.RefillBoardAreas() self.RefillBoardAreas()
return return # no need to run the rest of logic
lboard = self.pcb.ComputeBoundingBox() lboard = self.pcb.ComputeBoundingBox()
rectangle = [] rectangle = []