Fix incorrect loading in module footprint

This commit is contained in:
Jean-Samuel Reynaud
2017-10-25 17:24:51 +02:00
parent b0c1540eb1
commit a21e69dac7
2 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,8 @@ class FillArea:
f.write(module_txt)
f.close()
plugin = IO_MGR.PluginFind(IO_MGR.KICAD)
plugin = IO_MGR.PluginFind(
IO_MGR.GuessPluginTypeFromLibPath(self.tmp_dir))
module = plugin.FootprintLoad(self.tmp_dir, "VIA_MATRIX")
module.FindPadByName("1").SetSize(wxSize(self.size, self.size))
module.FindPadByName("1").SetDrillSize(wxSize(self.drill, self.drill))