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

Fix MaterialX Nodedef Discovery #1641

Conversation

kxl-adsk
Copy link
Contributor

@kxl-adsk kxl-adsk commented Oct 4, 2021

Description of Change(s)

Updated the discovery process to request all NodeDefs directly from the library. This fixes #1629 where implementation were not able to provide their NodeDef, and supports a future where multiple NodeDef could be implemented with the same NodeGraph.

Also fixed issue where the versionless name discovered for ND_standard_surface_surfaceshader was wrong. In this case, the latest version has the versionless name, while the predecessor is version tagged, so the name mapping algorithm was updated to choose the shortest name in the hierarchy.
Updated the parser to also fetch the NodeDef from the library.

Use the correct API to get the complete port interface from the inheritance hierarchy.

Fixes Issue(s)

Use getActiveInputs to get all inputs of a NodeDef

This API will traverse the inheritance hierarchy to provide the complete
list of inputs of a NodeDef.
@jilliene
Copy link

jilliene commented Oct 4, 2021

Filed as internal issue #USD-6944

@pixar-oss pixar-oss merged commit 4ac8a7e into PixarAnimationStudios:dev Dec 18, 2021
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.

4 participants