Update openpype/hosts/flame/hooks/pre_flame_setup.py

Co-authored-by: Fabià Serra Arrizabalaga <fabia.serra92@gmail.com>
This commit is contained in:
Jakub Ježek 2023-06-09 17:01:05 +02:00 committed by GitHub
parent aaf8756e18
commit 7be1d97118
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,11 @@ class FlamePrelaunch(PreLaunchHook):
imageio_flame = project_settings["flame"]["imageio"]
# get host imageio settings enabled key if exists
# Check whether 'enabled' key from host imageio settings exists
# so we can tell if host is using the new colormanagement framework.
# If the 'enabled' isn't found we want 'colormanaged' set to True
# because prior to the key existing we always did colormanagement for
# Flame
colormanaged = imageio_flame.get("enabled")
# if key was not found, set to True
# ensuring backward compatibility