From f31e8ede4c696424ecf87ad8fd9747a516cfc0c7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 23 Feb 2021 22:00:27 +0100 Subject: [PATCH] Unconditionally switch Manual->Play when drawing automation --- gtk2_ardour/automation_region_view.cc | 6 ++---- gtk2_ardour/automation_time_axis.cc | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index 10975a63ec..0851765750 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -207,10 +207,8 @@ AutomationRegionView::add_automation_event (GdkEvent *, samplepos_t when, double if (_line->the_list()->editor_add (when_d, y, with_guard_points)) { - if (ac == view->session()->recently_touched_controllable ()) { - if (ac->automation_state () == ARDOUR::Off) { - ac->set_automation_state (ARDOUR::Touch); - } + if (ac->automation_state () == ARDOUR::Off) { + ac->set_automation_state (ARDOUR::Play); } view->editor().begin_reversible_command (_("add automation event")); diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index d98497a944..8e29b47801 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -791,10 +791,8 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, samplepos_t sampl if (list->editor_add (when.sample, y, with_guard_points)) { - if (_control == _session->recently_touched_controllable ()) { - if (_control->automation_state () == ARDOUR::Off) { - _control->set_automation_state (ARDOUR::Touch); - } + if (_control->automation_state () == ARDOUR::Off) { + _control->set_automation_state (ARDOUR::Play); } XMLNode& after = list->get_state();