Skip to content

Commit 99ff579

Browse files
chellmuthChris Hellmuth
authored andcommitted
Fix LibsToOso crash when not removing prefixes (AcademySoftwareFoundation#2659)
Node instances were meant to be inserted into an isolated nodegraph, but weren't due to a merge error during development. This lead to name collisions when called with --removeNdPrefix false.
1 parent 6029ef4 commit 99ff579

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)