Skip to content

Commit

Permalink
Merge pull request #28 from BigRoy/chore/remove_deprecated_imageioconfig
Browse files Browse the repository at this point in the history
Remove deprecated `ocio_config` `ImageIOConfigModel` settings
  • Loading branch information
BigRoy authored Jul 24, 2024
2 parents a3d339f + a55feb5 commit 0037976
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions server/settings/imageio.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,6 @@
)


class ImageIOConfigModel(BaseSettingsModel):
"""[DEPRECATED] Addon OCIO config settings. Please set the OCIO config
path in the Core addon profiles here
(ayon+settings://core/imageio/ocio_config_profiles).
"""

override_global_config: bool = SettingsField(
False,
title="Override global OCIO config",
description=(
"DEPRECATED functionality. Please set the OCIO config path in the "
"Core addon profiles here (ayon+settings://core/imageio/"
"ocio_config_profiles)."
),
)
filepath: list[str] = SettingsField(
default_factory=list,
title="Config path",
description=(
"DEPRECATED functionality. Please set the OCIO config path in the "
"Core addon profiles here (ayon+settings://core/imageio/"
"ocio_config_profiles)."
),
)


class ImageIOFileRuleModel(BaseSettingsModel):
name: str = SettingsField("", title="Rule name")
pattern: str = SettingsField("", title="Regex pattern")
Expand Down Expand Up @@ -96,10 +70,6 @@ class ImageIOSettings(BaseSettingsModel):
activate_host_color_management: bool = SettingsField(
True, title="Enable Color Management"
)
ocio_config: ImageIOConfigModel = SettingsField(
default_factory=ImageIOConfigModel,
title="OCIO config"
)
file_rules: ImageIOFileRulesModel = SettingsField(
default_factory=ImageIOFileRulesModel,
title="File Rules"
Expand All @@ -123,10 +93,6 @@ class ImageIOSettings(BaseSettingsModel):

DEFAULT_IMAGEIO_SETTINGS = {
"activate_host_color_management": True,
"ocio_config": {
"override_global_config": False,
"filepath": []
},
"file_rules": {
"activate_host_rules": False,
"rules": []
Expand Down

0 comments on commit 0037976

Please sign in to comment.