mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use 'get_imageio_file_rules_colorspace_from_filepath' instead of 'get_imageio_colorspace_from_filepath'
This commit is contained in:
parent
0c84c32e15
commit
5599d773c7
1 changed files with 9 additions and 6 deletions
|
|
@ -1328,12 +1328,15 @@ def set_colorspace_data_to_representation(
|
|||
filename = filename[0]
|
||||
|
||||
# get matching colorspace from rules
|
||||
colorspace = colorspace or get_imageio_colorspace_from_filepath(
|
||||
filename, host_name, project_name,
|
||||
config_data=config_data,
|
||||
file_rules=file_rules,
|
||||
project_settings=project_settings
|
||||
)
|
||||
if colorspace is None:
|
||||
colorspace = get_imageio_file_rules_colorspace_from_filepath(
|
||||
filename,
|
||||
host_name,
|
||||
project_name,
|
||||
config_data=config_data,
|
||||
file_rules=file_rules,
|
||||
project_settings=project_settings
|
||||
)
|
||||
|
||||
# infuse data to representation
|
||||
if colorspace:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue