From 4b6ea71ed96bde19ae454bd77e7cf491c0327cd7 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 17 Jun 2024 14:07:27 +0200 Subject: [PATCH] adding deprecation flag on OCIO config override settings --- server/settings/imageio.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/server/settings/imageio.py b/server/settings/imageio.py index a4b481f..02f39a9 100644 --- a/server/settings/imageio.py +++ b/server/settings/imageio.py @@ -4,13 +4,28 @@ 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" + 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" + 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)." + ), )