Skip to content

Commit

Permalink
Minor clarifications to logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 19, 2024
1 parent 01afb6c commit 8bf4640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/MaterialXGenShader/ShaderGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ void ShaderGraph::createConnectedNodes(const ElementPtr& downstreamElement,
// Handle defaultgeomprops
//

const vector<InputPtr> activeInputs = upstreamNode->getActiveInputs();
for (const InputPtr& activeInput : activeInputs)
for (InputPtr activeInput : upstreamNode->getActiveInputs())
{
if (!activeInput->hasInterfaceName() || activeInput->getConnectedNode())
{
continue;
}
const auto graphInput = activeInput->getInterfaceInput();
// We have an input connected to an interface. See if it has defaultgeomprop

// Handle interface inputs with default geometric properties.
InputPtr graphInput = activeInput->getInterfaceInput();
if (graphInput && graphInput->hasDefaultGeomPropString())
{
ShaderInput* shaderInput = getNode(upstreamNode->getName())->getInput(activeInput->getName());
Expand Down

0 comments on commit 8bf4640

Please sign in to comment.