Do not show I/O plugin port in the matrix that cannot be connected

This commit is contained in:
Robin Gareus 2022-10-16 04:27:26 +02:00
parent 2a2e5a49e7
commit 57af42ef84
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -566,7 +566,10 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
for (auto const& iop : *session->io_plugs ()) { for (auto const& iop : *session->io_plugs ()) {
boost::shared_ptr<IO> io = inputs ? iop->input() : iop->output(); boost::shared_ptr<IO> io = inputs ? iop->input() : iop->output();
if (io->n_ports().get (type) > 0) { if (io->n_ports().n_total () == 0) {
continue;
}
if (type == DataType::NIL || io->n_ports().get (type) > 0) {
ioplugin->add_bundle (io->bundle(), io); ioplugin->add_bundle (io->bundle(), io);
} }
} }