-
Notifications
You must be signed in to change notification settings - Fork 202
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
MAYA-109334 - Crash when the token for "Info: id" on a material is ed… #1287
Conversation
…ited to an invalid or empty value -Add check to see if shader (info:id attr) exists while the attribute change to avoid crash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added some feedback in the code. In the meantime, if the network is empty, maybe we want to issue some warning with TF_WARN().
…ited to an invalid or empty value -Add check to see if shader (info:id attr) exists while the attribute change to avoid crash
There is already a warning displayed coming from UsdMayaDiagnosticDelegate::IssueWarning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following interactive tests are failing with this change (Maya 2022):
57 - testVP2RenderDelegateGeomSubset (Failed)
58 - testVP2RenderDelegatePointInstanceSelection (Failed)
59 - testVP2RenderDelegatePointInstancesPickMode (Failed)
61 - testVP2RenderDelegatePerInstanceInheritedData (Failed)
Please investigate.
…ited to an invalid or empty value -Fix vp2 test
@HdC-adsk The condition must be below _ApplyVP2Fixes() otherwise the shading is wrong. |
Right. The fix looks good to me. Meanwhile, an alternative is to test bxdfNet instead so that we can run the sanity test before everything, I think it should be better.
|
…ited to an invalid or empty value
-Add check to see if shader (info:id attr) exists while the attribute change to avoid crash