From e2262ce929b049febed5ff67e3c0cdc1952b0382 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Thu, 8 Oct 2020 13:36:04 +0200 Subject: [PATCH] make sure all entities with changed tasks are processed even if they dont have any task left --- pype/modules/ftrack/events/event_sync_to_avalon.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pype/modules/ftrack/events/event_sync_to_avalon.py b/pype/modules/ftrack/events/event_sync_to_avalon.py index 93aeb3e20a..5395fe756c 100644 --- a/pype/modules/ftrack/events/event_sync_to_avalon.py +++ b/pype/modules/ftrack/events/event_sync_to_avalon.py @@ -2194,7 +2194,12 @@ class SyncToAvalonEvent(BaseEvent): ftrack_mongo_mapping_found = {} not_found_ids = [] - tasks_per_ftrack_id = {} + # Make sure all parents have updated tasks, as they may not have any + tasks_per_ftrack_id = { + ftrack_id: {} + for ftrack_id in self.modified_tasks_ftrackids + } + # Query all task types at once task_types = self.process_session.query(self.task_types_query).all() task_types_by_id = {