From b68412a75784c3eddcc964fa91140873e5a1a1fa Mon Sep 17 00:00:00 2001 From: bernardkwok Date: Thu, 24 Jun 2021 10:49:31 -0400 Subject: [PATCH] Stop rendering of baked documents. --- source/MaterialXTest/MaterialXRender/RenderUtil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/MaterialXTest/MaterialXRender/RenderUtil.cpp b/source/MaterialXTest/MaterialXRender/RenderUtil.cpp index 853ffc4e5d..179eff3e8e 100644 --- a/source/MaterialXTest/MaterialXRender/RenderUtil.cpp +++ b/source/MaterialXTest/MaterialXRender/RenderUtil.cpp @@ -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;