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
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 1 deletions

View File

@ -566,7 +566,10 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
for (auto const& iop : *session->io_plugs ()) {
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);
}
}