introduce imprint function for correct version in hda loader

This commit is contained in:
Kayla Man 2023-08-31 16:48:52 +08:00
parent 3b8f74d71d
commit 5685e2a168

View file

@ -59,6 +59,9 @@ class HdaLoader(load.LoaderPlugin):
def_paths = [d.libraryFilePath() for d in defs]
new = def_paths.index(file_path)
defs[new].setIsPreferred(True)
hda_node.setParms({
"representation": str(representation["_id"])
})
def remove(self, container):
node = container["node"]