diff --git a/lib/mayaUsd/commands/PullPushCommands.cpp b/lib/mayaUsd/commands/PullPushCommands.cpp index d40d989c68..73dbc504d2 100644 --- a/lib/mayaUsd/commands/PullPushCommands.cpp +++ b/lib/mayaUsd/commands/PullPushCommands.cpp @@ -279,7 +279,11 @@ MStatus MergeToUsdCommand::doIt(const MArgList& argList) return status; } - userArgs[UsdMayaPrimUpdaterArgsTokens->ignoreVariants] = argData.isFlagSet(kIgnoreVariantsFlag); + if (argData.isFlagSet(kIgnoreVariantsFlag)) { + const int index = 0; + userArgs[UsdMayaPrimUpdaterArgsTokens->ignoreVariants] + = argData.flagArgumentBool(kIgnoreVariantsFlag, index); + } // Scope the undo item recording so we can undo on failure. {