diff --git a/lib/usd/translators/jointWriter.cpp b/lib/usd/translators/jointWriter.cpp index 9f1a7c32f0..c5fbdd37a6 100644 --- a/lib/usd/translators/jointWriter.cpp +++ b/lib/usd/translators/jointWriter.cpp @@ -259,6 +259,7 @@ bool _GetLocalTransformForDagPoseMember( MStatus status; MPlug xformMatrixPlug = dagPoseDep.findPlug("xformMatrix"); +#if MAYA_API_VERSION >= 20190000 if (TfDebug::IsEnabled(PXRUSDMAYA_TRANSLATORS)) { // As an extra debug sanity check, make sure that the logicalIndex // already exists @@ -271,6 +272,7 @@ bool _GetLocalTransformForDagPoseMember( logicalIndex); } } +#endif MPlug xformPlug = xformMatrixPlug.elementByLogicalIndex(logicalIndex, &status); CHECK_MSTATUS_AND_RETURN(status, false);