Skip to content

Commit

Permalink
Improve "Add Node" workflows in the graph editor
Browse files Browse the repository at this point in the history
Previously, the tab menu was the only way to add new nodes to the graph editor.
Now users can select any pin in the graph, and drag a link off of that pin. If
this link does not connect to another pin, on mouse release, the user will be
prompted to add a new node. The list of nodes that users can add will be filtered
to only include nodes that can be connected to the pin from which this link originates.

This context-aware node filtering in the "Add Node" popup can be toggled on/off
with the "Smart Filter" check box.
  • Loading branch information
GregoryD2017 committed Dec 3, 2023
1 parent 61ea1dc commit aad650e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ Graph::Graph(const std::string& materialFilename,
_addNewNode(false),
_ctrlClick(false),
_isCut(false),
_smartFilter(true),
_autoLayout(false),
_frameCount(INT_MIN),
_fontScale(1.0f),
_saveNodePositions(true)
_saveNodePositions(true),
_smartFilter(true)
{
loadStandardLibraries();
setPinColor();
Expand Down

0 comments on commit aad650e

Please sign in to comment.