Skip to content

Commit

Permalink
Minor formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 19, 2024
1 parent d91431e commit 01afb6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/MaterialXGenShader/ShaderGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ void ShaderGraph::createConnectedNodes(const ElementPtr& downstreamElement,
const vector<InputPtr> 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);
}
Expand Down

0 comments on commit 01afb6c

Please sign in to comment.