diff --git a/data/locale/en-US.ini b/data/locale/en-US.ini index 79c150fb..e281354b 100644 --- a/data/locale/en-US.ini +++ b/data/locale/en-US.ini @@ -379,6 +379,7 @@ Filter.Denoising.NVIDIA.Denoising.Strength.Strong="Strong" # Filter - Displacement Filter.Displacement="Displacement Mapping" +Filter.Displacement.Deprecated="This filter is deprecated and has been removed. Users are urged to migrate to the 'Shader' filter with the 'displace.effect' example immediately." Filter.Displacement.File="File" Filter.Displacement.Scale="Scale" Filter.Displacement.Scale.Type="Scaling Type" diff --git a/source/filters/filter-displacement.cpp b/source/filters/filter-displacement.cpp index a89fe79d..96bf3e20 100644 --- a/source/filters/filter-displacement.cpp +++ b/source/filters/filter-displacement.cpp @@ -17,6 +17,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +//--------------------------------------------------------------------------------// +// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED. +//--------------------------------------------------------------------------------// + #include "filter-displacement.hpp" #include "strings.hpp" #include @@ -39,6 +43,7 @@ #endif #define ST_I18N "Filter.Displacement" +#define ST_I18N_DEPRECATED ST_I18N ".Deprecated" #define ST_I18N_FILE "Filter.Displacement.File" #define ST_KEY_FILE "Filter.Displacement.File" #define ST_I18N_SCALE "Filter.Displacement.Scale" @@ -174,6 +179,12 @@ obs_properties_t* displacement_factory::get_properties2(displacement_instance* d { obs_properties_t* pr = obs_properties_create(); + { + auto p = obs_properties_add_text(pr, "[[deprecated]]", D_TRANSLATE(ST_I18N_DEPRECATED), OBS_TEXT_INFO); + obs_property_text_set_info_type(p, OBS_TEXT_INFO_WARNING); + obs_property_text_set_info_word_wrap(p, true); + } + std::string path = ""; if (data) { path = data->get_file(); diff --git a/source/filters/filter-displacement.hpp b/source/filters/filter-displacement.hpp index 3308413b..ba289a0f 100644 --- a/source/filters/filter-displacement.hpp +++ b/source/filters/filter-displacement.hpp @@ -17,6 +17,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +//--------------------------------------------------------------------------------// +// THIS FEATURE IS DEPRECATED. SUBMITTED PATCHES WILL BE REJECTED. +//--------------------------------------------------------------------------------// + #pragma once #include "common.hpp" #include "obs/gs/gs-effect.hpp"