Fix T72075: Incorrect Grid Fill error message

This commit is contained in:
Campbell Barton 2020-03-29 18:23:44 +11:00
parent 424fed3cc7
commit b9faf53182
Notes: blender-bot 2023-02-14 08:38:14 +01:00
Referenced by issue #72075, Wrong description in Grid Fill error notification
1 changed files with 8 additions and 1 deletions

View File

@ -616,7 +616,14 @@ void bmo_grid_fill_exec(BMesh *bm, BMOperator *op)
count = BM_mesh_edgeloops_find(bm, &eloops, bm_edge_test_cb, (void *)bm);
if (count != 2) {
BMO_error_raise(bm, op, BMERR_INVALID_SELECTION, "Select two edge loops");
/* Note that this error message has been adjusted to make sense when called
* from the operator 'MESH_OT_fill_grid' which has a 'prepare' pass which can
* extract two 'rail' loops from a single edge loop, see T72075. */
BMO_error_raise(bm,
op,
BMERR_INVALID_SELECTION,
"Select two edge loops "
"or a single closed edge loop from which two edge loops can be calculated");
goto cleanup;
}