allow inserts to connect it itself - #6924
authorRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 02:14:27 +0000 (04:14 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 16 Jul 2016 02:14:27 +0000 (04:14 +0200)
libs/ardour/route.cc

index 46b17cdbc745ff469622cdef144356bdf8b0e5da..e59677f44ccd28b78b159d6da9e03e4ea6d23759 100644 (file)
@@ -3173,6 +3173,10 @@ Route::direct_feeds_according_to_reality (boost::shared_ptr<Route> other, bool*
 
                if (iop != 0) {
                        boost::shared_ptr<const IO> iop_out = iop->output();
+                       if (other.get() == this && iop_out && iop->input() && iop_out->connected_to (iop->input())) {
+                               DEBUG_TRACE (DEBUG::Graph,  string_compose ("\tIOP %1 does feed its own return (%2)\n", iop->name(), other->name()));
+                               continue;
+                       }
                        if ((iop_out && other->all_inputs().fed_by (iop_out)) || iop->feeds (other)) {
                                DEBUG_TRACE (DEBUG::Graph,  string_compose ("\tIOP %1 does feed %2\n", iop->name(), other->name()));
                                if (via_send_only) {