13
0

Unconditionally switch Manual->Play when drawing automation

This commit is contained in:
Robin Gareus 2021-02-23 22:00:27 +01:00
parent 33c596e149
commit f31e8ede4c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 4 additions and 8 deletions

View File

@ -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"));

View File

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