Skip to content

Commit 584a63f

Browse files
Fix bugs in mmAnimCurveDiffStatistics flag parsing
1 parent c70e34b commit 584a63f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mmSolver/cmd/MMAnimCurveDiffStatisticsCmd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ MStatus MMAnimCurveDiffStatisticsCmd::parseArgs(const MArgList &args) {
187187
argData.isFlagSet(Y_VALUES_B_FLAG_SHORT);
188188

189189
// All four list flags must be provided, or none at all.
190-
if (hasAllListInputs && !hasAllListInputs) {
190+
if (hasSomeListInputs && !hasAllListInputs) {
191191
MGlobal::displayError(
192192
CMD_NAME
193193
": All list value flags (xValues, yValuesA, yValuesB) must be "
@@ -201,7 +201,7 @@ MStatus MMAnimCurveDiffStatisticsCmd::parseArgs(const MArgList &args) {
201201

202202
Count32 xCount = argData.numberOfFlagUses(X_VALUES_FLAG_SHORT);
203203
Count32 yCount1 = argData.numberOfFlagUses(Y_VALUES_A_FLAG_SHORT);
204-
Count32 yCount2 = argData.numberOfFlagUses(Y_VALUES_A_FLAG_SHORT);
204+
Count32 yCount2 = argData.numberOfFlagUses(Y_VALUES_B_FLAG_SHORT);
205205

206206
// Validate list lengths
207207
if (xCount != yCount1) {

0 commit comments

Comments
 (0)