Skip to content

Commit e405cf2

Browse files
chellmuthChris Hellmuth
authored andcommitted
Fix libs2oso collision by correctly inserting node instance into isolated nodegraph
1 parent 6029ef4 commit e405cf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MaterialXGenOsl/LibsToOso.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ int main(int argc, char* const argv[])
364364
}
365365

366366
// TODO: Check for the existence/validity of the `Node`?
367-
mx::NodePtr node = librariesDoc->addNodeInstance(nodeDef, nodeName);
367+
mx::NodePtr node = librariesDocGraph->addNodeInstance(nodeDef, nodeName);
368368

369369
std::string oslShaderName = node->getName();
370370
oslShaderGen->getSyntax().makeValidName(oslShaderName);

0 commit comments

Comments
 (0)