Skip to content

Commit

Permalink
HYDRA-1292 : Fix a freeze with Mtx openpbr deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Dec 12, 2024
1 parent b0db8f0 commit dc66271
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/mayaHydra/hydraExtensions/adapters/materialAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ class MayaHydraShadingEngineAdapter : public MayaHydraMaterialAdapter
}

// Construct a MaterialX document
auto mtlxDocStr = mtlxDocPlug.asString();
const MString mtlxDocStr = mtlxDocPlug.asString();
if (0 == mtlxDocStr.length()) {
return false;
}
auto mtlxDoc = MaterialX::createDocument();
MaterialX::readFromXmlString(mtlxDoc, mtlxDocStr.asChar());

Expand Down

0 comments on commit dc66271

Please sign in to comment.