mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
_ocio_config_profile_types is function
This commit is contained in:
parent
8c525987e5
commit
c0d9edad75
1 changed files with 7 additions and 6 deletions
|
|
@ -54,11 +54,12 @@ class CoreImageIOFileRulesModel(BaseSettingsModel):
|
|||
return value
|
||||
|
||||
|
||||
_ocio_config_profile_types = [
|
||||
{"value": "builtin_path", "label": "AYON built-in OCIO config"},
|
||||
{"value": "custom_path", "label": "Path to OCIO config"},
|
||||
{"value": "product", "label": "Published product"},
|
||||
]
|
||||
def _ocio_config_profile_types():
|
||||
return [
|
||||
{"value": "builtin_path", "label": "AYON built-in OCIO config"},
|
||||
{"value": "custom_path", "label": "Path to OCIO config"},
|
||||
{"value": "product", "label": "Published product"},
|
||||
]
|
||||
|
||||
|
||||
def _ocio_built_in_paths():
|
||||
|
|
@ -91,7 +92,7 @@ class CoreImageIOConfigProfilesModel(BaseSettingsModel):
|
|||
)
|
||||
type: str = SettingsField(
|
||||
title="Profile type",
|
||||
enum_resolver=lambda: _ocio_config_profile_types,
|
||||
enum_resolver=_ocio_config_profile_types,
|
||||
conditionalEnum=True,
|
||||
default="builtin_path",
|
||||
section="---",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue