From c1904dff39ca2923855dc19999efddb15e41ff6c Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 10 Dec 2024 14:31:45 +0100 Subject: [PATCH] Make sure to operate on copy of data and leave workfile instance data unaffected --- client/ayon_core/pipeline/publish/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/pipeline/publish/lib.py b/client/ayon_core/pipeline/publish/lib.py index 2ba40d7687..ecdcc0f0c1 100644 --- a/client/ayon_core/pipeline/publish/lib.py +++ b/client/ayon_core/pipeline/publish/lib.py @@ -764,7 +764,7 @@ def replace_with_published_scene_path(instance, replace_in_path=True): return # determine published path from Anatomy. - template_data = workfile_instance.data.get("anatomyData") + template_data = copy.deepcopy(workfile_instance.data["anatomyData"]) rep = workfile_instance.data["representations"][0] template_data["representation"] = rep.get("name") template_data["ext"] = rep.get("ext")