From f31cfe9cf56952aa5d3ac9456b940c3e331f0996 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 6 Dec 2023 22:51:28 +0100 Subject: [PATCH] Refactor code to use deep copy for `repre_files_thumb` variable --- openpype/plugins/publish/extract_thumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpype/plugins/publish/extract_thumbnail.py b/openpype/plugins/publish/extract_thumbnail.py index f10a29bf60..06e8fba99b 100644 --- a/openpype/plugins/publish/extract_thumbnail.py +++ b/openpype/plugins/publish/extract_thumbnail.py @@ -119,7 +119,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): # if it is not video file then just use first file input_file = repre_files else: - repre_files_thumb = copy(repre_files) + repre_files_thumb = copy.deepcopy(repre_files) # exclude first frame if slate in representation tags if "slate-frame" in repre.get("tags", []): repre_files_thumb = repre_files_thumb[1:]