Closed MasayaNikaido closed 1 year ago
Additionally, addDefaultGeomNode() is required here, but inputSocket->makeConnection() is not required in this case.
Thank you @MasayaNikaido for reporting these issues. I can reproduce the problem and I'm working on a fix.
Thank you for your quick improvement. It's working as expected.
Thanks to @MasayaNikaido for this report, and to @niklasharrysson for the fix!
When ShaderGraph::create() calls with an element of type Node, enumeration input values do not remap to integers. Is remapEnumeration() necessary here? https://github.com/AcademySoftwareFoundation/MaterialX/blob/b24e9dd16624fe2d09aa167f03a8154b8589b24e/source/MaterialXGenShader/ShaderGraph.cpp#L730-L737