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
(cherry picked from commit 802745398a
)
This commit is contained in:
parent
761ddcad21
commit
7a3a7d1af6
|
@ -119,9 +119,9 @@
|
||||||
plug = GetPluginForPath(libname)
|
plug = GetPluginForPath(libname)
|
||||||
return plug.FootprintEnumerate(libname)
|
return plug.FootprintEnumerate(libname)
|
||||||
|
|
||||||
def FootprintLoad(libname,name):
|
def FootprintLoad(libname,name,preserveUUID=False):
|
||||||
plug = GetPluginForPath(libname)
|
plug = GetPluginForPath(libname)
|
||||||
return plug.FootprintLoad(libname,name)
|
return plug.FootprintLoad(libname,name,preserveUUID)
|
||||||
|
|
||||||
def FootprintSave(libname,module):
|
def FootprintSave(libname,module):
|
||||||
plug = GetPluginForPath(libname)
|
plug = GetPluginForPath(libname)
|
||||||
|
|
Loading…
Reference in New Issue