Skip to content

Commit

Permalink
Updates to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 19, 2024
1 parent 8bf4640 commit 7e85cd7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/MaterialXGenShader/ShaderGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void ShaderGraph::createConnectedNodes(const ElementPtr& downstreamElement,
ElementPtr connectingElement,
GenContext& context)
{
// Create the node if it doesn't exists
// Create the node if it doesn't exist.
NodePtr upstreamNode = upstreamElement->asA<Node>();
if (!upstreamNode)
{
Expand All @@ -95,18 +95,14 @@ void ShaderGraph::createConnectedNodes(const ElementPtr& downstreamElement,
newNode = createNode(upstreamNode, context);
}

//
// Handle defaultgeomprops
//

// Handle interface inputs with default geometric properties.
for (InputPtr activeInput : upstreamNode->getActiveInputs())
{
if (!activeInput->hasInterfaceName() || activeInput->getConnectedNode())
{
continue;
}

// Handle interface inputs with default geometric properties.
InputPtr graphInput = activeInput->getInterfaceInput();
if (graphInput && graphInput->hasDefaultGeomPropString())
{
Expand Down

0 comments on commit 7e85cd7

Please sign in to comment.