Auto-touch when adding automation events to a spilled control

This commit is contained in:
Robin Gareus 2021-02-11 00:29:44 +01:00
parent 8321e7d6a6
commit 0becbe7f4f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 17 additions and 5 deletions

View file

@ -790,6 +790,13 @@ AutomationTimeAxisView::add_automation_event (GdkEvent* event, samplepos_t sampl
std::list<Selectable*> results;
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);
}
}
XMLNode& after = list->get_state();
_editor.begin_reversible_command (_("add automation event"));
_session->add_command (new MementoCommand<ARDOUR::AutomationList> (*list.get (), &before, &after));