From 3294b1ce0856386f86ab2d8a678f057fc4a888dc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 14 Jun 2020 20:31:50 +0200 Subject: [PATCH] Allow to select pan-automation lanes - #8234 The GUI uses ::axis_view_by_control() if a controllable when the CoreSelection contains a controllable. CoreSelection::get_stripables() saves and looks up controllable by PBD::ID. Panorama automation controls were previously not found, since they are not directly owned by the route. --- libs/ardour/route.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 554bd3f2be..2d77edce55 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -6055,6 +6055,12 @@ Route::automation_control_recurse (PBD::ID const & id) const return ac; } + if (_pannable) { + if ((ac = _pannable->automation_control (id))) { + return ac; + } + } + Glib::Threads::RWLock::ReaderLock lm (_processor_lock); for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) {