@@ -311,7 +311,7 @@ bool get_initial_parameters(
311
311
312
312
double value = 0.0 ;
313
313
status = attr->getValue (value, frame, timeEvalMode);
314
- CHECK_MSTATUS (status);
314
+ MMSOLVER_CHECK_MSTATUS (status);
315
315
if (status != MS::kSuccess ) {
316
316
out_solverResult.success = false ;
317
317
return false ;
@@ -365,7 +365,7 @@ bool set_maya_attribute_values(
365
365
}
366
366
367
367
status = attr->setValue (real_value, frame, dgmod, curveChange);
368
- CHECK_MSTATUS (status);
368
+ MMSOLVER_CHECK_MSTATUS (status);
369
369
370
370
if (status != MS::kSuccess ) {
371
371
MString attr_name = attr->getName ();
@@ -727,7 +727,7 @@ MStatus validateSolveFrames(
727
727
" failed; out_numberOfErrors="
728
728
<< out_numberOfErrors);
729
729
out_solve_is_valid = false ;
730
- CHECK_MSTATUS (status);
730
+ MMSOLVER_CHECK_MSTATUS (status);
731
731
return status;
732
732
}
733
733
MMSOLVER_ASSERT (out_numberOfErrors == (out_numberOfMarkerErrors +
@@ -754,7 +754,7 @@ MStatus validateSolveFrames(
754
754
" out_numberOfParameters="
755
755
<< out_numberOfParameters);
756
756
out_solve_is_valid = false ;
757
- CHECK_MSTATUS (status);
757
+ MMSOLVER_CHECK_MSTATUS (status);
758
758
return status;
759
759
}
760
760
@@ -800,7 +800,7 @@ MStatus validateSolveFrames(
800
800
if (status != MS::kSuccess ) {
801
801
MMSOLVER_MAYA_VRB (" validateSolveFrames: mapErrorsToParameters failed." );
802
802
out_solve_is_valid = false ;
803
- CHECK_MSTATUS (status);
803
+ MMSOLVER_CHECK_MSTATUS (status);
804
804
return status;
805
805
}
806
806
@@ -817,7 +817,7 @@ MStatus validateSolveFrames(
817
817
MMSOLVER_MAYA_VRB (
818
818
" validateSolveFrames: logResultsObjectCounts failed." );
819
819
out_solve_is_valid = false ;
820
- CHECK_MSTATUS (status);
820
+ MMSOLVER_CHECK_MSTATUS (status);
821
821
return status;
822
822
}
823
823
}
@@ -832,7 +832,7 @@ MStatus validateSolveFrames(
832
832
MMSOLVER_MAYA_VRB (
833
833
" validateSolveFrames: logResultsSolveObjectUsage failed." );
834
834
out_solve_is_valid = false ;
835
- CHECK_MSTATUS (status);
835
+ MMSOLVER_CHECK_MSTATUS (status);
836
836
return status;
837
837
}
838
838
}
@@ -848,7 +848,7 @@ MStatus validateSolveFrames(
848
848
" validateSolveFrames: logResultsMarkerAffectsAttribute "
849
849
" failed." );
850
850
out_solve_is_valid = false ;
851
- CHECK_MSTATUS (status);
851
+ MMSOLVER_CHECK_MSTATUS (status);
852
852
return status;
853
853
}
854
854
}
@@ -884,7 +884,7 @@ MStatus validateSolveFrames(
884
884
if (status != MS::kSuccess ) {
885
885
MMSOLVER_MAYA_VRB (
886
886
" validateSolveFrames: calculateMarkerAndParameterCount failed." );
887
- CHECK_MSTATUS (status);
887
+ MMSOLVER_CHECK_MSTATUS (status);
888
888
out_solve_is_valid = false ;
889
889
return status;
890
890
}
@@ -898,7 +898,7 @@ MStatus validateSolveFrames(
898
898
MMSOLVER_MAYA_VRB (
899
899
" validateSolveFrames: logResultsSolverFrames failed." );
900
900
out_solve_is_valid = false ;
901
- CHECK_MSTATUS (status);
901
+ MMSOLVER_CHECK_MSTATUS (status);
902
902
return status;
903
903
}
904
904
@@ -1273,7 +1273,7 @@ MStatus solveFrames(
1273
1273
// per-frame, it's not possible to easily fall back. See
1274
1274
// the use of the 'FrameSolveMode' enum type for more
1275
1275
// details.
1276
- CHECK_MSTATUS (status);
1276
+ MMSOLVER_CHECK_MSTATUS (status);
1277
1277
MMSOLVER_MAYA_ERR (
1278
1278
" Maya DAG is invalid for use with MM Scene Graph, "
1279
1279
<< " please switch to Maya DAG and solve again." );
@@ -1299,7 +1299,7 @@ MStatus solveFrames(
1299
1299
status = constructLensModelList (cameraList, markerList, attrList, frameList,
1300
1300
markerFrameToLensModelList,
1301
1301
attrFrameToLensModelList, lensModelList);
1302
- CHECK_MSTATUS_AND_RETURN_IT (status);
1302
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
1303
1303
#endif
1304
1304
1305
1305
// Solving Objects.
@@ -1385,7 +1385,7 @@ MStatus solveFrames(
1385
1385
solverOptions.imageWidth , &out_errorList[0 ], &userData,
1386
1386
initialErrorAvg, initialErrorMax, initialErrorMin,
1387
1387
status);
1388
- CHECK_MSTATUS_AND_RETURN_IT (status);
1388
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
1389
1389
1390
1390
initialErrorAvg = 0 ;
1391
1391
initialErrorMin = 0 ;
@@ -1595,7 +1595,7 @@ MStatus solveFrames(
1595
1595
numberOfAttrStiffnessErrors, numberOfAttrSmoothnessErrors,
1596
1596
logLevel, out_paramList);
1597
1597
1598
- CHECK_MSTATUS (status);
1598
+ MMSOLVER_CHECK_MSTATUS (status);
1599
1599
1600
1600
MMSOLVER_MAYA_VRB (" solveFrames: Z" );
1601
1601
@@ -1652,14 +1652,14 @@ MStatus generateMarkerAndBundleRelationships(
1652
1652
// Outputs
1653
1653
out_relationshipAttrsExistCount,
1654
1654
out_markerToAttrToFrameMatrix, status);
1655
- CHECK_MSTATUS_AND_RETURN_IT (status);
1655
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
1656
1656
1657
1657
// Create 'valid' lists.
1658
1658
generateValidMarkerAttrFrameLists (
1659
1659
markerList, attrList, frameList, out_markerToAttrToFrameMatrix,
1660
1660
1661
1661
out_validMarkerList, out_validAttrList, out_validFrameList, status);
1662
- CHECK_MSTATUS_AND_RETURN_IT (status);
1662
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
1663
1663
1664
1664
// Print warnings about unused solve objects.
1665
1665
if ((out_validMarkerList.count_disabled () > 0 ) && removeUnusedMarkers) {
@@ -1816,7 +1816,7 @@ bool solve_v1(SolverOptions &solverOptions, CameraPtrList &cameraList,
1816
1816
// Outputs
1817
1817
relationshipAttrsExistCount, validMarkerList, validAttrList,
1818
1818
validFrameList, markerToAttrToFrameMatrix);
1819
- CHECK_MSTATUS (status);
1819
+ MMSOLVER_CHECK_MSTATUS (status);
1820
1820
1821
1821
const Count32 validMarkerEnabledCount = validMarkerList.count_enabled ();
1822
1822
const Count32 validAttrEnabledCount = validAttrList.count_enabled ();
@@ -1856,7 +1856,7 @@ bool solve_v1(SolverOptions &solverOptions, CameraPtrList &cameraList,
1856
1856
auto jacobianList = std::vector<double >();
1857
1857
1858
1858
MGlobal::MMayaState mayaSessionState = MGlobal::mayaState (&status);
1859
- CHECK_MSTATUS_AND_RETURN_IT (status);
1859
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
1860
1860
1861
1861
auto frameSolveMode = solverOptions.frameSolveMode ;
1862
1862
MMSOLVER_MAYA_VRB (
@@ -1898,7 +1898,7 @@ bool solve_v1(SolverOptions &solverOptions, CameraPtrList &cameraList,
1898
1898
paramWeightList,
1899
1899
//
1900
1900
logLevel, verbose, solve_is_valid, cmdResult);
1901
- CHECK_MSTATUS (status);
1901
+ MMSOLVER_CHECK_MSTATUS (status);
1902
1902
1903
1903
if (solve_is_valid) {
1904
1904
status = solveFrames (
@@ -2002,7 +2002,7 @@ bool solve_v1(SolverOptions &solverOptions, CameraPtrList &cameraList,
2002
2002
paramWeightList,
2003
2003
//
2004
2004
logLevel, verbose, solve_is_valid, perFrameCmdResult);
2005
- CHECK_MSTATUS (status);
2005
+ MMSOLVER_CHECK_MSTATUS (status);
2006
2006
2007
2007
if (solve_is_valid) {
2008
2008
status = solveFrames (
@@ -2112,7 +2112,7 @@ bool solve_v2(SolverOptions &solverOptions, CameraPtrList &cameraList,
2112
2112
// Outputs
2113
2113
relationshipAttrsExistCount, validMarkerList, validAttrList,
2114
2114
validFrameList, markerToAttrToFrameMatrix);
2115
- CHECK_MSTATUS (status);
2115
+ MMSOLVER_CHECK_MSTATUS (status);
2116
2116
2117
2117
const Count32 markerEnabledCount = markerList.count_enabled ();
2118
2118
const Count32 frameEnabledCount = frameList.count_enabled ();
@@ -2139,7 +2139,7 @@ bool solve_v2(SolverOptions &solverOptions, CameraPtrList &cameraList,
2139
2139
auto jacobianList = std::vector<double >();
2140
2140
2141
2141
MGlobal::MMayaState mayaSessionState = MGlobal::mayaState (&status);
2142
- CHECK_MSTATUS_AND_RETURN_IT (status);
2142
+ MMSOLVER_CHECK_MSTATUS_AND_RETURN_IT (status);
2143
2143
2144
2144
auto frameSolveMode = solverOptions.frameSolveMode ;
2145
2145
MMSOLVER_MAYA_VRB (
@@ -2181,7 +2181,7 @@ bool solve_v2(SolverOptions &solverOptions, CameraPtrList &cameraList,
2181
2181
paramWeightList,
2182
2182
//
2183
2183
logLevel, verbose, solve_is_valid, out_cmdResult);
2184
- CHECK_MSTATUS (status);
2184
+ MMSOLVER_CHECK_MSTATUS (status);
2185
2185
2186
2186
if (solve_is_valid) {
2187
2187
status = solveFrames (
@@ -2282,7 +2282,7 @@ bool solve_v2(SolverOptions &solverOptions, CameraPtrList &cameraList,
2282
2282
paramWeightList,
2283
2283
//
2284
2284
perFrameLogLevel, verbose, solve_is_valid, perFrameCmdResult);
2285
- CHECK_MSTATUS (status);
2285
+ MMSOLVER_CHECK_MSTATUS (status);
2286
2286
2287
2287
if (solve_is_valid) {
2288
2288
status = solveFrames (
0 commit comments