mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
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:
parent
587b73d2c2
commit
1b8822a4e0
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue