Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Oct 15, 2024
1 parent b2ca8f7 commit c97d2a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/MaterialXCore/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,11 @@ NodeDefPtr Node::getNodeDef(const string& target, bool allowRoughMatch) const
{
return resolveNameReference<NodeDef>(getNodeDefString());
}

// Collect document nodes
vector<NodeDefPtr> nodeDefs = getDocument()->getMatchingNodeDefs(getQualifiedName(getCategory()));
vector<NodeDefPtr> secondary = getDocument()->getMatchingNodeDefs(getCategory());
nodeDefs.insert(nodeDefs.end(), secondary.begin(), secondary.end());

// Collect data library nodes if available
// Recurse to data library if present.
if (getDocument()->hasDataLibrary())
{
vector<NodeDefPtr> libraryNodeDefs = getDocument()->getDataLibrary()->getMatchingNodeDefs(getQualifiedName(getCategory()));
Expand All @@ -90,7 +88,6 @@ NodeDefPtr Node::getNodeDef(const string& target, bool allowRoughMatch) const
}

vector<NodeDefPtr> roughMatches;

for (NodeDefPtr nodeDef : nodeDefs)
{
if (!targetStringsMatch(nodeDef->getTarget(), target) ||
Expand Down

0 comments on commit c97d2a6

Please sign in to comment.