-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
MaterialX: Two small issues with boolean inputs #1784
Comments
Thanks @JGamache-autodesk for catching this. For the first issue you found regarding
Without adding the Refer https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/sdr/shaderProperty.cpp#L536-L542 and https://github.com/PixarAnimationStudios/USD/blob/release/pxr/usd/sdr/shaderProperty.cpp#L619 for more details. A similar thing was recently done for Please feel free to submit a PR with the fix and please include a test exhibiting this behavior. Thanks |
Filed as internal issue #USD-7242 |
Fixes PixarAnimationStudios#1784 - Remembers default values of boolean inputs in Sdr - Fixes swapped truth values in hdMtlx when creating inputs
Hi @tallytalwar , thanks for the pre-review. The PR has been submitted. |
PR has been accepted. Closing issue. Thanks! |
Description of Issue
We found two issues with boolean inputs while developing MaterialX node definitions for use with USD
Steps to Reproduce
PXR_MTLX_STDLIB_SEARCH_PATHS
env var).boolean_nodedef_defaultvalue.usda
from these bundled scenes boolean_nodedef_scenes.zip and notice the capsule is green. It should be red because the default value ofuse1
istrue
.boolean_nodedef_explicit.usda
scene from the scene bundle and notice the capsule is red. It should be green since we explicitly setuse1
to 0.System Information (OS, Hardware)
Package Versions
Build Flags
The text was updated successfully, but these errors were encountered: