From 76767247453fd44302aa20e7171e7245c5e64474 Mon Sep 17 00:00:00 2001 From: Kayla Man Date: Fri, 7 Jun 2024 16:40:05 +0800 Subject: [PATCH] remove the duplicated version collector --- .../publish/collect_workfile_version.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 client/ayon_core/plugins/publish/collect_workfile_version.py diff --git a/client/ayon_core/plugins/publish/collect_workfile_version.py b/client/ayon_core/plugins/publish/collect_workfile_version.py deleted file mode 100644 index e54e107e5e..0000000000 --- a/client/ayon_core/plugins/publish/collect_workfile_version.py +++ /dev/null @@ -1,19 +0,0 @@ -import pyblish.api - -from ayon_core.pipeline import registered_host -from ayon_core.lib import get_version_from_path - - -class CollectWorkfileVersion(pyblish.api.ContextPlugin): - """Collect current workfile version as context data""" - - order = pyblish.api.CollectorOrder - 0.5 - label = "Current Workfile Version" - - def process(self, context): - host = registered_host() - path = host.get_current_workfile() - if path: - version = int(get_version_from_path(path)) - context.data["version"] = version - self.log.debug(f"Current Version: {version}")