Update openpype/hosts/nuke/api/plugin.py

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Jakub Ježek 2023-08-03 10:33:09 +02:00 committed by GitHub
parent df78b06014
commit 9e008a80e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,15 +215,10 @@ class NukeCreator(NewCreator):
for created_inst, changes in update_list:
instance_node = created_inst.transient_data["node"]
changed_keys = {
key: changes[key].new_value
for key in changes.changed_keys
}
# update instance node name if subset name changed
if "subset" in changed_keys:
if "subset" in changes:
instance_node["name"].setValue(
changed_keys["subset"]
changes["subset"].new_value
)
# in case node is not existing anymore (user erased it manually)