From 907216f143c3869f4fda9d80801d02325fd7d664 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Wed, 25 Dec 2019 10:10:06 +0100 Subject: [PATCH] gfx-shader: Don't show parameters that are invisible --- source/gfx/shader/gfx-shader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gfx/shader/gfx-shader.cpp b/source/gfx/shader/gfx-shader.cpp index 3f42c326..c100a3c7 100644 --- a/source/gfx/shader/gfx-shader.cpp +++ b/source/gfx/shader/gfx-shader.cpp @@ -243,7 +243,8 @@ bool gfx::shader::shader::on_properties_modified(obs_properties_t* props, obs_pr // Rebuild new parameters. for (auto kv : _shader_params) { - kv.second->properties(grp, data); + if (kv.second->is_visible()) + kv.second->properties(grp, data); kv.second->defaults(data); kv.second->update(data); }