Skip to content

Commit

Permalink
[HdMtlx] Fix duplicate name error when processing HdNetwork from Houdini
Browse files Browse the repository at this point in the history
  • Loading branch information
hshakula committed Oct 18, 2021
1 parent 96c5a3f commit 52d0aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxr/imaging/hdMtlx/hdMtlx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ _GatherUpstreamNodes(

// Initilize the mxNodeGraph if needed
if (!(*mxNodeGraph)) {
const std::string & nodeGraphName = hdNodePath.GetParentPath().GetName();
std::string nodeGraphName = hdNodePath.GetParentPath().GetName() + "_Graph";
*mxNodeGraph = mxDoc->addNodeGraph(nodeGraphName);
}

Expand Down

0 comments on commit 52d0aae

Please sign in to comment.