From b2ca8f7c1dd80a842ddaf5c61817ae44b170ddf6 Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Tue, 15 Oct 2024 15:48:14 -0700 Subject: [PATCH] Restore Node::getNodeDef --- source/MaterialXCore/Node.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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