From ce1ec1107cbf70cfb201f65b21a62e25c5230dd8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jun 2023 12:53:08 -0600 Subject: [PATCH] fix layering of automation views This code is awful, and ought to be restricted only to velocity lanes by a better design --- gtk2_ardour/automation_time_axis.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 767fe49c9b..d6b5ea2ff6 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -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; }