From 3e65a47c1151eb7e66eac268eecd623384df488d Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Mon, 2 Sep 2019 15:10:42 +0200 Subject: [PATCH] task names are lowered when task existence is checked --- pype/plugins/ftrack/publish/integrate_hierarchy_ftrack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pype/plugins/ftrack/publish/integrate_hierarchy_ftrack.py b/pype/plugins/ftrack/publish/integrate_hierarchy_ftrack.py index 5f0516c593..25c641c168 100644 --- a/pype/plugins/ftrack/publish/integrate_hierarchy_ftrack.py +++ b/pype/plugins/ftrack/publish/integrate_hierarchy_ftrack.py @@ -106,11 +106,11 @@ class IntegrateHierarchyToFtrack(pyblish.api.ContextPlugin): tasks_to_create = [] for child in entity['children']: if child.entity_type.lower() == 'task': - existing_tasks.append(child['name']) + existing_tasks.append(child['name'].lower()) # existing_tasks.append(child['type']['name']) for task in tasks: - if task in existing_tasks: + if task.lower() in existing_tasks: print("Task {} already exists".format(task)) continue tasks_to_create.append(task)