lastNodeId in AudioProcessorGraph::addNode


#1

On line 988 in juce_AudioProcessorGraph, would is make sense to do something like…

if (nodeId > lastNodeId) 
        lastNodeId = nodeId;

otherwise couldn’t you end up with duplicate nodes if you add nodeIds in an order that isn’t necessarily rising (or sequential).


#2

Yes… good point, thanks!