Skip pin-management for MB channelstrip plugins
authorRobin Gareus <robin@gareus.org>
Thu, 15 Sep 2016 13:32:23 +0000 (15:32 +0200)
committerRobin Gareus <robin@gareus.org>
Thu, 15 Sep 2016 13:32:45 +0000 (15:32 +0200)
gtk2_ardour/mixer_strip.cc
gtk2_ardour/plugin_pin_dialog.cc

index 935542e74ef7e4f4081ac36d81d830bdcf0b9da8..c26b18942a26146c5b69399723d3b3d87bf73b79 100644 (file)
@@ -1639,7 +1639,13 @@ MixerStrip::help_count_plugins (boost::weak_ptr<Processor> p)
        if (!processor || !processor->display_to_user()) {
                return;
        }
-       if (boost::dynamic_pointer_cast<PluginInsert> (processor)) {
+       boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (processor);
+#ifdef MIXBUS
+       if (pi && pi->is_channelstrip ()) {
+               return;
+       }
+#endif
+       if (pi) {
                ++_plugin_insert_cnt;
        }
 }
index 24a4fec4f4cc071c6f93ccdc315bec2db064d3db..8d0e713a05fdea9714605fc22c13d01356faf184 100644 (file)
@@ -2021,6 +2021,11 @@ PluginPinDialog::add_processor (boost::weak_ptr<Processor> p)
                return;
        }
        boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (proc);
+#ifdef MIXBUS
+       if (pi && pi->is_channelstrip ()) {
+               pi.reset ();
+       }
+#endif
        if (pi) {
                ppw.push_back (PluginPinWidgetPtr(new PluginPinWidget (pi)));
                vbox->pack_start (*ppw.back());