Skip to content

Commit

Permalink
Simplify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Sep 19, 2024
1 parent e4c3c64 commit 44fcbc4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/MaterialXCore/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1316,10 +1316,7 @@ void Document::upgradeVersion()
}
else if (nodeCategory == "normalmap")
{
// ND_normalmap was renamed to ND_normalmap_float.
// But, there is also ND_normalmap_vector2 that was not renamed.
// The only difference between them is the "scale" input type
// (float and vector2, respectively), so use that as a test.
// ND_normalmap was renamed to ND_normalmap_float
NodeDefPtr nodeDef = getShaderNodeDef(node);
InputPtr scaleInput = node->getInput("scale");
if ((nodeDef && nodeDef->getName() == "ND_normalmap") ||
Expand Down

0 comments on commit 44fcbc4

Please sign in to comment.