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:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user