Skip to content

Consolidate edge creation in Graph Editor#2793

Open
jstone-lucasfilm wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_graph_edge_creation
Open

Consolidate edge creation in Graph Editor#2793
jstone-lucasfilm wants to merge 2 commits intoAcademySoftwareFoundation:mainfrom
jstone-lucasfilm:dev_graph_edge_creation

Conversation

@jstone-lucasfilm
Copy link
Member

This changelist consolidates edge creation logic in the MaterialX Graph Editor, adding shared helper methods and merging parallel code paths. The following specific changes are included:

  • Add a findUpstreamNode helper method to handle the resolution of upstream connections for an input.
  • Add a createEdgeForOutput helper method to handle the creation of edges from output elements to their connected upstream nodes.
  • Unify edge creation in buildUiBaseGraph into a single loop over all graph nodes, replacing separate loops for nodegraphs and surface shader nodes.
  • Add missing edge creation and render material updates for document-scope outputs (addresses issue Graph Editor: Missing connections for nodes at root scope #2294).

This changelist consolidates edge creation logic in the MaterialX Graph Editor, adding shared helper methods and merging parallel code paths.  The following specific changes are included:

- Add a `findUpstreamNode` helper method to handle the resolution of upstream connections for an input.
- Add a `createEdgeForOutput` helper method to handle the creation of edges from output elements to their connected upstream nodes.
- Unify edge creation in `buildUiBaseGraph` into a single loop over all graph nodes, replacing separate loops for nodegraphs and surface shader nodes.
- Add missing edge creation and render material updates for document-scope outputs (addresses issue AcademySoftwareFoundation#2294).
@jstone-lucasfilm
Copy link
Member Author

Highlighting the fix for #2294, here's a new render of the tiledimage.mtlx example in the Graph Editor:

GraphEditor_TiledImageExample

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

Successfully merging this pull request may close these issues.

1 participant