nuke: removing customOCIOConfigPath value in workfile

Linux is reversing processing order of preference the way: if workfile is having set value in `customOCIOConfigPath` use it even OCIO env variable is set to some value. This way we are making sure OCIO is read only.
This commit is contained in:
Jakub Jezek 2023-08-01 17:02:23 +02:00
parent 587b73d2c2
commit 1b8822a4e0
No known key found for this signature in database
GPG key ID: 730D7C02726179A7

View file

@ -2070,9 +2070,15 @@ class WorkfileSettings(object):
str(workfile_settings["OCIO_config"]))
else:
# set values to root
# OCIO config path is defined from prelaunch hook
self._root_node["colorManagement"].setValue("OCIO")
# restart settings in case some were set previously
# linux is reversing order of preference to prefer what ever
# is set knobs before it apply it form environment variable
if self._root_node["customOCIOConfigPath"].value():
self._root_node["customOCIOConfigPath"].setValue("")
# we dont need the key anymore
workfile_settings.pop("customOCIOConfigPath", None)
workfile_settings.pop("colorManagement", None)