Hide hidden Controls in GUI

This commit is contained in:
Robin Gareus 2020-03-18 18:09:20 +01:00
parent 28f15d3fa6
commit a44fecb740
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 9 additions and 0 deletions

View File

@ -359,6 +359,10 @@ GenericPluginUI::build ()
= boost::dynamic_pointer_cast<ARDOUR::AutomationControl>(
insert->control(param));
if (c->flags () & Controllable::HiddenControl) {
continue;
}
ParameterDescriptor desc;
plugin->get_parameter_descriptor(i, desc);
if ((cui = build_control_ui (param, desc, c, value, plugin->parameter_is_input(i), hint.knob)) == 0) {

View File

@ -2067,6 +2067,11 @@ RouteTimeAxisView::add_existing_processor_automation_curves (boost::weak_ptr<Pro
Evoral::Parameter param (*i);
boost::shared_ptr<AutomationLine> al;
boost::shared_ptr<AutomationControl> control = boost::dynamic_pointer_cast<AutomationControl>(processor->control(*i, false));
if (!control || control->flags () & Controllable::HiddenControl) {
continue;
}
if ((al = find_processor_automation_curve (processor, param)) != 0) {
al->queue_reset ();
} else {