13
0

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 8400ebd175)
This commit is contained in:
Robin Gareus 2020-03-12 17:49:33 +01:00
parent 5b113c9c5b
commit 64ddc5dd32
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ();
}