Skip to content

Commit

Permalink
mc: fix deprecated function being used for MaterialX 1.38.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Jul 24, 2024
1 parent 090000e commit 90d8f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mc/src/MtlxMdlCodeGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace
std::vector<mx::TypedElementPtr> renderableElements;
#if (MATERIALX_MAJOR_VERSION > 1) || \
(MATERIALX_MAJOR_VERSION == 1 && MATERIALX_MINOR_VERSION > 38) || \
(MATERIALX_MAJOR_VERSION == 1 && MATERIALX_MINOR_VERSION == 38 && MATERIALX_BUILD_VERSION > 8)
(MATERIALX_MAJOR_VERSION == 1 && MATERIALX_MINOR_VERSION == 38 && MATERIALX_BUILD_VERSION > 7)
renderableElements = mx::findRenderableElements(doc);
#else
mx::findRenderableElements(doc, renderableElements);
Expand Down

0 comments on commit 90d8f32

Please sign in to comment.