gfx-shader: Don't show parameters that are invisible

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-12-25 10:10:06 +01:00
parent 4acbfedd40
commit 907216f143

View file

@ -243,7 +243,8 @@ bool gfx::shader::shader::on_properties_modified(obs_properties_t* props, obs_pr
// Rebuild new parameters. // Rebuild new parameters.
for (auto kv : _shader_params) { 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->defaults(data);
kv.second->update(data); kv.second->update(data);
} }