From bba0df9c0eac4e92b2eb2852736bfd183603657c Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Tue, 11 Feb 2025 20:07:37 +0200 Subject: [PATCH] don't `version_up` twice --- client/ayon_core/pipeline/context_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/pipeline/context_tools.py b/client/ayon_core/pipeline/context_tools.py index 386c7ba737..a809261fa2 100644 --- a/client/ayon_core/pipeline/context_tools.py +++ b/client/ayon_core/pipeline/context_tools.py @@ -617,7 +617,7 @@ def version_up_current_workfile(): last_workfile_path = get_last_workfile( work_root, file_template, data, extensions, True ) - new_workfile_path = version_up(last_workfile_path) + new_workfile_path = last_workfile_path if os.path.exists(new_workfile_path): new_workfile_path = version_up(new_workfile_path) host.save_workfile(new_workfile_path)