Skip to content

Commit 00ede1e

Browse files
Fix missing origin annotations for MDL (#2806)
These are based on the node paths and were missing for the second input of a unit transform node and input sockets of node graphs.
1 parent ffb888c commit 00ede1e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/MaterialXGenShader/ShaderGraph.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void ShaderGraph::addInputSockets(const InterfaceElement& elem, GenContext& cont
5656
{
5757
inputSocket->setUniform();
5858
}
59+
inputSocket->setPath(input->getNamePath());
5960
GeomPropDefPtr geomprop = input->getDefaultGeomProp();
6061
if (geomprop)
6162
{

0 commit comments

Comments
 (0)