remove modifier for use-selection on gain controls

The condition is now: use selection if route is not in a group that shares gain
This commit is contained in:
Paul Davis 2023-07-26 18:09:04 -06:00
parent 6ba69cfd57
commit e60c1840cb
1 changed files with 3 additions and 1 deletions

View File

@ -755,7 +755,9 @@ GainMeterBase::meter_point_clicked (MeterPoint mp)
void
GainMeterBase::amp_start_touch (int state)
{
if (state & Keyboard::UseSelectionModifier) {
assert (_route);
if (!_route->route_group() || !_route->route_group()->is_gain()) {
_touch_control_group.reset (new GainControlGroup ());
_touch_control_group->set_mode (ControlGroup::Relative);
_touch_control_group->fill_from_selection (_control->session().selection(), _control->parameter());