Merge pull request #5548 from ynput/bugfix/Houdini-HDA-update-or-set-version-does-not-change-version-in-scene-inventory

Houdini: Introduce imprint function for correct version in hda loader
This commit is contained in:
Kayla Man 2023-09-01 10:24:43 +08:00 committed by GitHub
commit 7af0764b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"]