Fix #143014: make the rip operator's error message more user-friendly

As discussed in #143014, the ripping operators gave error messages that
left the user clueless as to why the operator fails and what to do from
there. This PR aims to fix that by changing the error messages.

Pull Request: https://projects.blender.org/blender/blender/pulls/143102
This commit is contained in:
Loïc DAUTRY
2025-08-04 10:44:35 +02:00
committed by Julian Eisel
parent a5043308f2
commit 720cc7d08c

View File

@@ -1112,7 +1112,7 @@ static wmOperatorStatus edbm_rip_invoke(bContext *C, wmOperator *op, const wmEve
return OPERATOR_CANCELLED;
}
if (error_face_selected) {
BKE_report(op->reports, RPT_ERROR, "Cannot rip selected faces");
BKE_report(op->reports, RPT_ERROR, "Cannot rip faces");
return OPERATOR_CANCELLED;
}
if (error_disconnected_vertices) {
@@ -1120,7 +1120,7 @@ static wmOperatorStatus edbm_rip_invoke(bContext *C, wmOperator *op, const wmEve
return OPERATOR_CANCELLED;
}
if (error_rip_failed) {
BKE_report(op->reports, RPT_ERROR, "Rip failed");
BKE_report(op->reports, RPT_ERROR, "Cannot rip non-manifold vertices or edges");
return OPERATOR_CANCELLED;
}
/* No errors, everything went fine. */