Skip to content

Fix input default values on cmlib definitions#1369

Merged
jstone-lucasfilm merged 5 commits intoAcademySoftwareFoundation:mainfrom
kwokcb:cm_validate
Jun 14, 2023
Merged

Fix input default values on cmlib definitions#1369
jstone-lucasfilm merged 5 commits intoAcademySoftwareFoundation:mainfrom
kwokcb:cm_validate

Conversation

@kwokcb
Copy link
Copy Markdown
Contributor

@kwokcb kwokcb commented May 30, 2023

Fix so that cmlib inputs have default values, otherwise validate() will fail.

Copy link
Copy Markdown
Member

@jstone-lucasfilm jstone-lucasfilm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default value fix looks great to me, and thanks for catching this. I wonder, though, if we really want an additional test document for the color transform nodes, since they are already tested in color_management.mtlx?

https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/resources/Materials/TestSuite/stdlib/color_management/color_management.mtlx

In some ways, the existing tests are more comprehensive than these new ones, as they test both the functionality of each transform node and the system that injects them into material graphs.

What are your thoughts?

@jstone-lucasfilm jstone-lucasfilm changed the title Fix input default values on cm library definitions Fix input default values on cmlib definitions Jun 14, 2023
@jstone-lucasfilm jstone-lucasfilm merged commit 1c9d7ce into AcademySoftwareFoundation:main Jun 14, 2023
Michaelredaa pushed a commit to Michaelredaa/MaterialX that referenced this pull request Oct 21, 2023
…ion#1369)

Fix so that cmlib inputs have default values, otherwise validate() will fail.
@kwokcb kwokcb deleted the cm_validate branch May 28, 2024 15:38
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.

2 participants