From b3e9d6a6b66f8b23e8d6fdc035efdbc8a136ef88 Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Tue, 11 Oct 2022 15:57:34 +0200 Subject: [PATCH] OP-4218 - fix variable --- .../webpublisher/plugins/publish/collect_published_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/webpublisher/plugins/publish/collect_published_files.py b/openpype/hosts/webpublisher/plugins/publish/collect_published_files.py index 85e0469801..9d1c702860 100644 --- a/openpype/hosts/webpublisher/plugins/publish/collect_published_files.py +++ b/openpype/hosts/webpublisher/plugins/publish/collect_published_files.py @@ -147,13 +147,14 @@ class CollectPublishedFiles(pyblish.api.ContextPlugin): instances.append(instance) self.log.info("instance.data:: {}".format(instance.data)) - if not self.sync_version: + if not self.sync_next_version: return # overwrite specific version with same version for all max_next_version = max(next_versions) for inst in instances: inst.data["version"] = max_next_version + self.log.debug("overwritten version:: {}".format(max_next_version)) def _get_subset_name(self, family, subset_template, task_name, variant): fill_pairs = {