From 64ddc5dd3279cd8f06d020f0742cc38096ff1830 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 12 Mar 2020 17:49:33 +0100 Subject: [PATCH] Fix setting automation state for Aux-sends When switching the Mixer to show sends, using _amp as intermediate for automation is not correct. The control is not owned by the amp. The same is true for VCAs, prefer the control (see 8400ebd175e0) --- gtk2_ardour/gain_meter.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk2_ardour/gain_meter.cc b/gtk2_ardour/gain_meter.cc index 4196409692..6eaceba754 100644 --- a/gtk2_ardour/gain_meter.cc +++ b/gtk2_ardour/gain_meter.cc @@ -305,9 +305,7 @@ GainMeterBase::set_gain_astate (AutoState as) ChangeGainAutomationState (as); return; } - if (_amp) { - _amp->set_parameter_automation_state (Evoral::Parameter (GainAutomation), as); - } else if (_control) { + if (_control) { _control->set_automation_state (as); _session->set_dirty (); }