Specifiy families explicitly (to avoid issues with workfile family not having a tool)

This commit is contained in:
Roy Nieterau 2022-09-27 11:41:55 +02:00
parent f555c1bf9a
commit b8f4a0a396

View file

@ -97,10 +97,15 @@ class CollectUpstreamInputs(pyblish.api.InstancePlugin):
label = "Collect Inputs"
order = pyblish.api.CollectorOrder + 0.2
hosts = ["fusion"]
families = ["render"]
def process(self, instance):
# Get all upstream and include itself
if not any(instance[:]):
self.log.debug("No tool found in instance, skipping..")
return
tool = instance[0]
nodes = list(iter_upstream(tool))
nodes.append(tool)