fix layering of automation views

This code is awful, and ought to be restricted only to velocity lanes by
a better design
This commit is contained in:
Paul Davis 2023-06-27 12:53:08 -06:00
parent 294de8d64f
commit ce1ec1107c
1 changed files with 4 additions and 0 deletions

View File

@ -1236,6 +1236,10 @@ AutomationTimeAxisView::color () const
void
AutomationTimeAxisView::set_velocity_mode (VelocityMode vm, bool force)
{
if (_parameter.type() != MidiVelocityAutomation) {
return;
}
if (vm == _velocity_mode && !force) {
return;
}