Skip to content

Commit

Permalink
Restore Node::getNodeDef
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinbhat committed Oct 15, 2024
1 parent 241e45c commit b2ca8f7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source/MaterialXCore/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,7 @@ NodeDefPtr Node::getNodeDef(const string& target, bool allowRoughMatch) const
{
if (hasNodeDefString())
{
NodeDefPtr resolvedNode = resolveNameReference<NodeDef>(getNodeDefString());
if (!resolvedNode && getDocument()->hasDataLibrary())
{
return (getDocument()->getNodeDef(getNodeDefString()));
}
return resolvedNode;
return resolveNameReference<NodeDef>(getNodeDefString());
}

// Collect document nodes
Expand Down

0 comments on commit b2ca8f7

Please sign in to comment.