backward compatibility fix

studio could have set host config paths but those were not resolving to custom config OCIO environment path. Instead it was always falling back to global ocio config paths settings
This commit is contained in:
Jakub Jezek 2023-06-20 16:50:49 +02:00
parent 724b8d12c4
commit b94b7ff5de
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -377,6 +377,10 @@ def get_imageio_config(
activate_host_color_management = imageio_host.get(
"activate_host_color_management", True)
# TODO: remove this in future - backward compatibility
if activate_host_color_management is None:
activate_host_color_management = host_ocio_config.get("enabled", False)
if not activate_host_color_management:
# if host settings are disabled return False because
# it is expected that no colorspace management is needed