Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterCreateNodeMenuEntries Not working when I create Node by drag #221

Open
xzaxzaazx opened this issue Aug 22, 2022 · 1 comment
Open

Comments

@xzaxzaazx
Copy link

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.

@chadefranklin
Copy link

chadefranklin commented Aug 26, 2022

In CreateNodeMenuWindow.cs:
In CreateEdgeNodeMenu():

replace:
NodeProvider.GetNodeMenuEntries(graphView.graph)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants