Skip to content

Commit

Permalink
Stop rendering of baked documents. (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardkwok authored Jun 24, 2021
1 parent 5b4e146 commit b17d7d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/MaterialXTest/MaterialXRender/RenderUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ bool ShaderRenderTester::validate(const mx::FilePathVec& testRootPaths, const mx
if (doctoBake.bakeFile == outputBakeFile.asString())
{
outputBakeFile.removeExtension();
outputBakeFile = outputPath / (outputBakeFile.asString() + "_baked.mtlx");
// Bake to "xml" to avoid trying to render baked in render tests
outputBakeFile = outputPath / (outputBakeFile.asString() + "_baked.xml");
runBake(doc, imageSearchPath, searchPath, outputBakeFile, doctoBake, log);
break;

Expand Down

0 comments on commit b17d7d5

Please sign in to comment.