NodeGraphProcessor icon indicating copy to clipboard operation
NodeGraphProcessor copied to clipboard

`FilterCreateNodeMenuEntries` Not working when I create Node by drag

Open xzaxzaazx opened this issue 3 years ago • 1 comments

Nodes totally mixed when I have TWO type of graphs. I can tell them apart by overriding DialogGraphView.FilterCreateNodeMenuEntries(), but that doesn't work when I drag a port to empty place to create new Node. The nodes in create list are totally not filtered.

xzaxzaazx avatar Aug 22 '22 06:08 xzaxzaazx

In CreateNodeMenuWindow.cs: In CreateEdgeNodeMenu():

replace: NodeProvider.GetNodeMenuEntries(graphView.graph)

with: graphView.FilterCreateNodeMenuEntries().OrderBy(k => k.path)

chadefranklin avatar Aug 26 '22 21:08 chadefranklin