From 19666f7df32f58490e88cea2ea6f4b8978ebf82d Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 20 Dec 2023 15:48:47 +0100 Subject: [PATCH 1/2] Refactor integrate_ftrack_instances.py to update asset names for multiple reviewable items - Add a condition to also check if multiple_reviewable is True before updating the asset name. --- .../modules/ftrack/plugins/publish/integrate_ftrack_instances.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py index a3e6bc25c5..04186425f9 100644 --- a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py +++ b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py @@ -354,6 +354,7 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin): if ( not self.keep_first_subset_name_for_review and extended_asset_name + and multiple_reviewable ): other_item["asset_data"]["name"] = extended_asset_name From a09fc5814850673faf173acf73ce39d75dff538e Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 20 Dec 2023 15:56:21 +0100 Subject: [PATCH 2/2] flipping order of condition arguments --- .../ftrack/plugins/publish/integrate_ftrack_instances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py index 04186425f9..4b1307f9f0 100644 --- a/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py +++ b/openpype/modules/ftrack/plugins/publish/integrate_ftrack_instances.py @@ -352,9 +352,9 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin): # add extended name if any if ( - not self.keep_first_subset_name_for_review + multiple_reviewable + and not self.keep_first_subset_name_for_review and extended_asset_name - and multiple_reviewable ): other_item["asset_data"]["name"] = extended_asset_name