-
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: Sdr can not provide node information for ND_convert_float_color3 #1629
Comments
Thanks for reporting, @JGamache-autodesk - would you like to submit a PR for the fix? |
Hi @spiffmon, I will start the process to get a PR submitted. First one from me, so will require some time to get all the details right. |
No worries - we'll wait for it, and thank you! |
Filed as internal issue #USD-6913 |
I assume this issue can be closed now? |
Indeed - the fix made it into 22.03 . Sorry, our automation will close the PR but not, I think the Issue, when there are both. |
Description of Issue
The usdMtlx Sdr parser goes thru one level of indirection to get the mx::NodeDef by asking the mx::NodeGraph or mx::Implementation for a mx::NodeDef, and sometimes the indirect call fails.
Steps to Reproduce
All the buggy MaterialX nodes have in common that the NodeGraph/Implementation they use is missing a link back to the NodeDef they represent.
To fix:
Go directly from Document to NodeDef in UsdMtlxParserPlugin::Parse(const NdrNodeDiscoveryResult&) using:
and remove the two ParseElement functions that uses
const mx::ConstNodeGraphPtr&
andconst mx::ConstImplementationPtr& impl
in parser.cpp.System Information (OS, Hardware)
Package Versions
Build Flags
The text was updated successfully, but these errors were encountered: