13
0

Skip pin-management for MB channelstrip plugins

This commit is contained in:
Robin Gareus 2016-09-15 15:32:23 +02:00
parent e2b724194e
commit b302f70265
2 changed files with 12 additions and 1 deletions

View 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;
}
}

View 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());