diff --git a/source/MaterialXGenShader/ShaderGraph.cpp b/source/MaterialXGenShader/ShaderGraph.cpp index 2857138e11..ae5bc11935 100644 --- a/source/MaterialXGenShader/ShaderGraph.cpp +++ b/source/MaterialXGenShader/ShaderGraph.cpp @@ -102,12 +102,14 @@ void ShaderGraph::createConnectedNodes(const ElementPtr& downstreamElement, const vector activeInputs = upstreamNode->getActiveInputs(); for (const InputPtr& activeInput : activeInputs) { - if (!activeInput->hasInterfaceName() || activeInput->getConnectedNode()) { + if (!activeInput->hasInterfaceName() || activeInput->getConnectedNode()) + { continue; } const auto graphInput = activeInput->getInterfaceInput(); // We have an input connected to an interface. See if it has defaultgeomprop - if (graphInput && graphInput->hasDefaultGeomPropString()) { + if (graphInput && graphInput->hasDefaultGeomPropString()) + { ShaderInput* shaderInput = getNode(upstreamNode->getName())->getInput(activeInput->getName()); addDefaultGeomNode(shaderInput, *graphInput->getDefaultGeomProp(), context); }