Fix OP-5542

# Traceback (most recent call last):
#   File "C:\Users\florianbehr\AppData\Local\pypeclub\openpype\3.15\openpype-v3.15.4-thescope230404\openpype\hosts\maya\tools\mayalookassigner\app.py", line 272, in on_process_selected
#     nodes = list(set(item["nodes"]).difference(arnold_standins))
# UnboundLocalError: local variable 'arnold_standins' referenced before assignment
This commit is contained in:
Toke Jepsen 2023-04-05 10:11:20 +01:00 committed by GitHub
parent 0cdeda5396
commit 2d6d1ba882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,14 +263,14 @@ class MayaLookAssignerWindow(QtWidgets.QWidget):
for standin in arnold_standins:
if standin in nodes:
arnold_standin.assign_look(standin, subset_name)
nodes = list(set(item["nodes"]).difference(arnold_standins))
else:
self.echo(
"Could not assign to aiStandIn because mtoa plugin is not "
"loaded."
)
nodes = list(set(item["nodes"]).difference(arnold_standins))
# Assign look
if nodes:
assign_look_by_version(nodes, version_id=version["_id"])