Cleanup: fixed copy-paste error in Object Solver constraint message

The message was clearly copied from the Child Of constraint, and never
changed to Object Solver.

No functional changes.
This commit is contained in:
Sybren A. Stüvel 2020-02-25 12:00:24 +01:00
parent 6e23433c1a
commit 4f92367bde
1 changed files with 3 additions and 2 deletions

View File

@ -1240,8 +1240,9 @@ static int objectsolver_set_inverse_exec(bContext *C, wmOperator *op)
/* despite 3 layers of checks, we may still not be able to find a constraint */
if (data == NULL) {
printf("DEBUG: Child-Of Set Inverse - object = '%s'\n", (ob) ? ob->id.name + 2 : "<None>");
BKE_report(op->reports, RPT_ERROR, "Could not find constraint data for Child-Of Set Inverse");
printf("DEBUG: ObjectSolver Set Inverse - object = '%s'\n", (ob) ? ob->id.name + 2 : "<None>");
BKE_report(
op->reports, RPT_ERROR, "Could not find constraint data for ObjectSolver Set Inverse");
return OPERATOR_CANCELLED;
}