diff options
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 0eaa1aefc8..4a4045f823 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -255,23 +255,25 @@ AutomationTimeAxisView::auto_clicked () void AutomationTimeAxisView::set_automation_state (AutoState state) { - if (!ignore_state_request) { - if (_automatable) { - _automatable->set_parameter_automation_state (_control->parameter(), state); - } -#if 0 - if (_route == _automatable) { // This is a time axis for route (not region) automation - _route->set_parameter_automation_state (_control->parameter(), state); - } - - if (_control->list()) - _control->alist()->set_automation_state(state); -#endif + if (ignore_state_request) { + return; } + if (_automatable) { + _automatable->set_parameter_automation_state (_control->parameter(), state); + } +#if 0 + if (_route == _automatable) { // This is a time axis for route (not region) automation + _route->set_parameter_automation_state (_control->parameter(), state); + } + + if (_control->list()) { + _control->alist()->set_automation_state(state); + } +#endif if (_view) { _view->set_automation_state (state); - + /* AutomationStreamViews don't signal when their automation state changes, so handle our updates `manually'. */ |