mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
fix for rig if no input found
This commit is contained in:
parent
14246f30e3
commit
73260855e0
1 changed files with 5 additions and 1 deletions
|
|
@ -22,7 +22,11 @@ def disconnected_attributes(settings, members):
|
|||
sources = [i for i in source_nodes if
|
||||
not cmds.referenceQuery(i, isNodeReferenced=True)
|
||||
and i in members]
|
||||
source = sources[0]
|
||||
try:
|
||||
source = sources[0]
|
||||
except IndexError:
|
||||
print "source_id:", input["sourceID"]
|
||||
continue
|
||||
|
||||
# Get destination shapes (the shapes used as hook up)
|
||||
destination_nodes = lib.lsattr("cbId", input["destinationID"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue