diff --git a/Source/Processors/ProcessorGraph/ProcessorGraph.cpp b/Source/Processors/ProcessorGraph/ProcessorGraph.cpp index 0064953370..609370833f 100644 --- a/Source/Processors/ProcessorGraph/ProcessorGraph.cpp +++ b/Source/Processors/ProcessorGraph/ProcessorGraph.cpp @@ -1013,17 +1013,17 @@ void ProcessorGraph::updateConnections() { sourceMap[node].add(conn); } + } + + // Finally, actually connect sources to each dest processor, + // in correct order by merger topography + for (const auto& destSources : sourceMap) + { + GenericProcessor* dest = destSources.first; - // Finally, actually connect sources to each dest processor, - // in correct order by merger topography - for (const auto& destSources : sourceMap) + for (const ConnectionInfo& conn : destSources.second) { - GenericProcessor* dest = destSources.first; - - for (const ConnectionInfo& conn : destSources.second) - { - connectProcessors(conn.source, dest, conn.connectContinuous, conn.connectEvents); - } + connectProcessors(conn.source, dest, conn.connectContinuous, conn.connectEvents); } }