Refactor code to use deep copy for repre_files_thumb variable

This commit is contained in:
Jakub Jezek 2023-12-06 22:51:28 +01:00
parent b97c943b00
commit f31cfe9cf5
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -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:]