mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
oscar's comment on the code changes
This commit is contained in:
parent
f0436f78c4
commit
fc3598ca2b
3 changed files with 8 additions and 10 deletions
|
|
@ -341,5 +341,8 @@ def reset_colorspace():
|
|||
ocio_config = max_imageio["ocio_config"]
|
||||
if ocio_config["override_global_config"]:
|
||||
ocio_config_path = ocio_config["filepath"][0]
|
||||
if not ocio_config_path:
|
||||
# use the default ocio config path instead
|
||||
ocio_config_path = ocio_config["filepath"][-1]
|
||||
|
||||
colorspace_mgr.OCIOConfigPath = ocio_config_path
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ class OpenPypeMenu(object):
|
|||
openpype_menu.addAction(frame_action)
|
||||
|
||||
colorspace_action = QtWidgets.QAction("Set Colorspace", openpype_menu)
|
||||
colorspace_action.triggered.connect(self.colospace_setting_callback)
|
||||
colorspace_action.triggered.connect(lib.reset_colorspace())
|
||||
openpype_menu.addAction(colorspace_action)
|
||||
|
||||
return openpype_menu
|
||||
|
|
@ -152,7 +152,3 @@ class OpenPypeMenu(object):
|
|||
def frame_range_callback(self):
|
||||
"""Callback to reset frame range"""
|
||||
return lib.reset_frame_range()
|
||||
|
||||
def colospace_setting_callback(self):
|
||||
"""Callback to reset OCIO colorspace setting"""
|
||||
return lib.reset_colorspace()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue