Skip to content

Commit 6fea929

Browse files
Remove printing warnings for missing MarkerGroup nodes
It's just spam, isn't helpful and will just slow down the solver (because printing text to the output window takes time).
1 parent 2e469c6 commit 6fea929

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/mmSolver/cmd/arg_flags_solve_object.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ void createSolveObjectSyntax(MSyntax &syntax) {
6060
MStatus createMarkerGroupFromMarkerNodeName(const MString &markerName,
6161
MarkerGroupPtr &out_markerGroup) {
6262
MStatus status = MStatus::kSuccess;
63+
const bool verbose = false;
6364

6465
MDagPath node_path;
6566
status = getAsDagPath(markerName, node_path);
@@ -82,7 +83,7 @@ MStatus createMarkerGroupFromMarkerNodeName(const MString &markerName,
8283
}
8384
}
8485
if (!out_markerGroup) {
85-
MMSOLVER_WRN(
86+
MMSOLVER_VRB(
8687
"createMarkerGroupFromMarkerNodeName: No MarkerGroup node found "
8788
"for \""
8889
<< markerName.asChar() << "\".");

src/mmSolver/mayahelper/maya_marker.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ MStatus Marker::getPos(MPoint &point, const int timeEvalMode) {
171171
MStatus Marker::getPosXY(double &out_x, double &out_y, const MTime &time,
172172
const int timeEvalMode, const bool applyOverscan) {
173173
MStatus status;
174+
const bool verbose = false;
175+
174176
auto attr_pos_x = Marker::getPosXAttr();
175177
auto attr_pos_y = Marker::getPosYAttr();
176178

@@ -187,7 +189,7 @@ MStatus Marker::getPosXY(double &out_x, double &out_y, const MTime &time,
187189
overscan_x = 1.0 / overscan_x;
188190
overscan_y = 1.0 / overscan_y;
189191
} else {
190-
MMSOLVER_WRN("Marker::getPosXY: MarkerGroup node not found for \""
192+
MMSOLVER_VRB("Marker::getPosXY: MarkerGroup node not found for \""
191193
<< m_nodeName.asChar() << "\".");
192194
}
193195
}

0 commit comments

Comments
 (0)