Skip to content

Commit

Permalink
Don't throw for graph node input to output socket connections
Browse files Browse the repository at this point in the history
  • Loading branch information
fnRaihanKibria committed Oct 6, 2024
1 parent e58370d commit f62d01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MaterialXGenShader/ShaderNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void ShaderInput::makeConnection(ShaderOutput* src)
if (src)
{
// Make the new connection.
if (src->getNode() == this->getNode())
if (src->getNode() == this->getNode() && !this->getNode()->isAGraph())
{
throw ExceptionShaderGenError(
"Tried to create looping connection on node " + getNode()->getName()
Expand Down

0 comments on commit f62d01e

Please sign in to comment.