do not set automation to off/manual for MIDI CC data when clearing such data

This commit is contained in:
Paul Davis 2017-08-12 14:39:50 -04:00
parent 8402537493
commit b98969be94
1 changed files with 3 additions and 1 deletions

View File

@ -480,7 +480,9 @@ AutomationTimeAxisView::clear_clicked ()
} else if (_view) {
_view->clear ();
}
set_automation_state ((AutoState) ARDOUR::Off);
if (!EventTypeMap::instance().type_is_midi (_control->parameter().type())) {
set_automation_state ((AutoState) ARDOUR::Off);
}
_editor.commit_reversible_command ();
_session->set_dirty ();
}