mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
gfx-shader: Don't show parameters that are invisible
This commit is contained in:
parent
4acbfedd40
commit
907216f143
1 changed files with 2 additions and 1 deletions
|
@ -243,6 +243,7 @@ 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) {
|
||||||
|
if (kv.second->is_visible())
|
||||||
kv.second->properties(grp, data);
|
kv.second->properties(grp, data);
|
||||||
kv.second->defaults(data);
|
kv.second->defaults(data);
|
||||||
kv.second->update(data);
|
kv.second->update(data);
|
||||||
|
|
Loading…
Reference in a new issue