Skip to content

Commit

Permalink
Fix testUsdImagingGLMaterialXCustomNodes_customColor failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoxiFan-AGP committed Sep 22, 2023
1 parent 26cc843 commit 1925fa4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pxr/usd/usdMtlx/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -874,8 +874,7 @@ _NodeGraphBuilder::_AddNode(
usdParent.GetPath().GetText());
// Nodegraphs associated with locally defined custom nodes are added
// before reading materials, and therefore get-able here
auto nodeGraphPath = usdParent.GetParent().GetPath().AppendChild(
TfToken(mtlxNodeDef->getName()));
auto nodeGraphPath =usdParent.GetParent().GetPath().AppendChild(_MakeName(mtlxNodeDef));
auto usdNodeGraph = UsdShadeNodeGraph::Get(usdStage, nodeGraphPath);
connectable = usdNodeGraph.ConnectableAPI();
_SetCoreUIAttributes(usdNodeGraph.GetPrim(), mtlxNode);
Expand Down

0 comments on commit 1925fa4

Please sign in to comment.