diff options
author | Len Ovens <len@ovenwerks.net> | 2017-06-22 10:20:02 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2017-06-22 10:20:48 -0700 |
commit | 57e7531b1f69f7ffd65f089d5145ac4ce5f9bcc0 (patch) | |
tree | 16b559f3305c8adadfa360c1033be1b9501c4187 /libs/surfaces/osc | |
parent | 6180c5a5fc9a663858d12c31a6783e12f02bfcba (diff) |
OSC: allow mixbuses to show
Diffstat (limited to 'libs/surfaces/osc')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index f4f7fa807e..9ac31b3162 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -46,6 +46,7 @@ #include "ardour/plugin.h" #include "ardour/plugin_insert.h" #include "ardour/presentation_info.h" +#include "ardour/profile.h" #include "ardour/send.h" #include "ardour/internal_send.h" #include "ardour/phase_control.h" @@ -4813,6 +4814,15 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue) } else if (types[9] && (s->presentation_info().flags() & PresentationInfo::Hidden)) { sorted.push_back (s); } +#ifdef MIXBUS + else if (types[2]) { + if (Profile->get_mixbus()) { + if (s->mixbus()) { + sorted.push_back (s); + } + } + } +#endif } } sort (sorted.begin(), sorted.end(), StripableByPresentationOrder()); |