diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-29 10:23:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-29 10:36:00 +0300 |
commit | b9faf53182965e19ba65af8de758c9f9639cdd84 (patch) | |
tree | c83b6a2f80b9773be603587c14ae2d988b8d16d3 /source | |
parent | 424fed3cc7c7a140d37d9257b6cf37f0c26da1fb (diff) |
Fix T72075: Incorrect Grid Fill error message
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/bmesh/operators/bmo_fill_grid.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/bmesh/operators/bmo_fill_grid.c b/source/blender/bmesh/operators/bmo_fill_grid.c index adc612cfb54..6986655c6de 100644 --- a/source/blender/bmesh/operators/bmo_fill_grid.c +++ b/source/blender/bmesh/operators/bmo_fill_grid.c @@ -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; } |