Python add param to change UUIDs on fp load

By default, we load all footprints with a new UUID set to allow them to
be added to the board as unique objects.  But when editing footprints,
we want to maintain the same UUID.

Fixes https://gitlab.com/kicad/code/kicad/issues/11870
This commit is contained in:
Seth Hillbrand 2022-06-29 12:09:07 -07:00
parent 66b3b48e93
commit 802745398a
1 changed files with 2 additions and 2 deletions

View File

@ -119,9 +119,9 @@
plug = GetPluginForPath(libname)
return plug.FootprintEnumerate(libname)
def FootprintLoad(libname,name):
def FootprintLoad(libname,name,preserveUUID=False):
plug = GetPluginForPath(libname)
return plug.FootprintLoad(libname,name)
return plug.FootprintLoad(libname,name,preserveUUID)
def FootprintSave(libname,module):
plug = GetPluginForPath(libname)