Skip to content

Commit

Permalink
Merge pull request #6 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
jakubjezek001 authored Jul 22, 2024
2 parents a734de5 + 543d76c commit 98b118f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
30 changes: 0 additions & 30 deletions server/imageio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,6 @@
from ayon_server.settings.validators import ensure_unique_names


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 All @@ -53,10 +27,6 @@ class FusionImageIOModel(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 Down
4 changes: 0 additions & 4 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ class FusionSettings(BaseSettingsModel):

DEFAULT_VALUES = {
"imageio": {
"ocio_config": {
"enabled": False,
"filepath": []
},
"file_rules": {
"enabled": False,
"rules": []
Expand Down

0 comments on commit 98b118f

Please sign in to comment.