Skip to content

Commit ff9865d

Browse files
Fix typo in swizzle upgrade logic (#2290)
This changelist fixes a typo in the latest updates to swizzle upgrade logic. Thanks to Jerry Gamache for catching this issue in USD/MaterialX testing and proposing the fix.
1 parent 4d16d01 commit ff9865d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/MaterialXCore/Version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ void Document::upgradeVersion()
12341234
node->setCategory("extract");
12351235
if (node->hasNodeDefString())
12361236
{
1237-
node->setNodeDefString("ND_extract_" + node->getType());
1237+
node->setNodeDefString("ND_extract_" + sourceType);
12381238
}
12391239
if (!channelString.empty() && CHANNEL_INDEX_MAP.count(channelString[0]))
12401240
{

0 commit comments

Comments
 (0)