mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Update client/ayon_core/pipeline/colorspace.py
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
parent
65b3ca009f
commit
29d899783c
1 changed files with 6 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue