Skip to content

Commit

Permalink
Merge pull request #3334 from Autodesk/bailp/EMSUSD-498/decode-ignore…
Browse files Browse the repository at this point in the history
…-variants-flag

EMSUSD-498 properly read the ignore variants flag
  • Loading branch information
seando-adsk authored Sep 20, 2023
2 parents d47cd2c + 3cd3c9b commit b48151b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/mayaUsd/commands/PullPushCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
{
Expand Down

0 comments on commit b48151b

Please sign in to comment.