OSC: aux bus detection fixed for mixbus
authorLen Ovens <len@ovenwerks.net>
Mon, 21 Aug 2017 15:40:22 +0000 (08:40 -0700)
committerLen Ovens <len@ovenwerks.net>
Mon, 21 Aug 2017 15:40:22 +0000 (08:40 -0700)
libs/surfaces/osc/osc.cc

index 76a3723fd68547e14d43c94e4a0258ec5668ed6b..6bde293aeb039d409df144882a4d0448ceca533d 100644 (file)
@@ -5049,6 +5049,11 @@ OSC::get_sorted_stripables(std::bitset<32> types, bool cue)
                        if (types[2] && Profile->get_mixbus() && s->mixbus()) {
                                sorted.push_back (s);
                        } else
+                       if (types[7] && boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
+                               if (Profile->get_mixbus() && !s->mixbus()) {
+                                       sorted.push_back (s);
+                               }
+                       } else
 #endif
                        if ((types[2] || types[3] || types[7]) && boost::dynamic_pointer_cast<Route>(s) && !boost::dynamic_pointer_cast<Track>(s)) {
                                boost::shared_ptr<Route> r = boost::dynamic_pointer_cast<Route>(s);