Skip to content

Commit

Permalink
Merge pull request #3546 from Autodesk/gamaj/LOOKDEVX-2331/try_harder…
Browse files Browse the repository at this point in the history
…_to_shadergen

LOOKDEVX-2331 - Do not bail out after a failed validate call
  • Loading branch information
seando-adsk authored Jan 10, 2024
2 parents ee15dfe + f8dbb2c commit 92229df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/mayaUsd/render/MaterialXGenOgsXml/ShaderGenUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ TopoNeutralGraph::TopoNeutralGraph(const mx::ElementPtr& material)
if (!material) {
throw mx::Exception("Invalid material element");
}
std::string message;
if (!material->validate(&message)) {
const std::string step("Error in original graph:\n");
throw mx::Exception(step + message);
}
_doc = mx::createDocument();

auto inputDoc = material->getDocument();
Expand Down

0 comments on commit 92229df

Please sign in to comment.