diff --git a/source/MaterialXCore/Node.cpp b/source/MaterialXCore/Node.cpp index 64ce97e8ce..451828451e 100644 --- a/source/MaterialXCore/Node.cpp +++ b/source/MaterialXCore/Node.cpp @@ -72,12 +72,7 @@ NodeDefPtr Node::getNodeDef(const string& target, bool allowRoughMatch) const { if (hasNodeDefString()) { - NodeDefPtr resolvedNode = resolveNameReference(getNodeDefString()); - if (!resolvedNode && getDocument()->hasDataLibrary()) - { - return (getDocument()->getNodeDef(getNodeDefString())); - } - return resolvedNode; + return resolveNameReference(getNodeDefString()); } // Collect document nodes