OP-2765 - changed collector to work with new creator

This commit is contained in:
Petr Kalis 2022-03-03 19:32:50 +01:00
parent 3c11f46b11
commit 082b2306ee

View file

@ -10,6 +10,11 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
order = pyblish.api.CollectorOrder + 0.1
def process(self, context):
for instance in context:
if instance.data["family"] == "workfile":
self.log.debug("Workfile instance found, skipping")
return
task = api.Session["AVALON_TASK"]
current_file = context.data["currentFile"]
staging_dir = os.path.dirname(current_file)