Update client/ayon_core/pipeline/colorspace.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Jiri Sindelar 2025-03-24 11:11:51 +01:00 committed by GitHub
parent 65b3ca009f
commit 29d899783c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1275,7 +1275,12 @@ def set_colorspace_data_to_representation(
project_settings = context_data["project_settings"]
# get one filename
filename = representation["files"][0] if representation["files"] else None
filename = representation["files"]
if isinstance(filename, list):
if filename:
filename = filename[0]
else:
filename = None
# get matching colorspace from rules
if colorspace is None: