mirror of
https://github.com/atomic14/kicad-coil-plugins.git
synced 2024-10-18 09:06:57 +00:00
Fixes pads moving after copy/paste and save/load
This commit is contained in:
parent
9868d32041
commit
95abe5c798
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ class CoilPlugin(pcbnew.ActionPlugin):
|
|||
# create the pads
|
||||
for pad in coil_data["pads"]:
|
||||
module = pcbnew.FOOTPRINT(board)
|
||||
module.SetPosition(pcbnew.wxPointMM(pad["x"], pad["y"]))
|
||||
board.Add(module)
|
||||
pcb_pad = pcbnew.PAD(module)
|
||||
pcb_pad.SetSize(pcbnew.wxSizeMM(1.7, 1.7))
|
||||
|
|
Loading…
Reference in a new issue