diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-01 10:01:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-01 10:01:19 +0300 |
commit | aaa8ee1307aa77be773f5011b946781dbcc437e3 (patch) | |
tree | 440345f76c4bc0de4789515d93845e9e43e0b1ee /source/blender/bmesh/operators/bmo_dissolve.c | |
parent | 927456491aa4368e8fadcff1319587a24a73009b (diff) |
Cleanup: remove bmesh-operator error code
The error codes could be used to look up messages from a table
of messages however this wasn't especially useful.
Now all calls to BMO_error_raise must inclue a message.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_dissolve.c')
-rw-r--r-- | source/blender/bmesh/operators/bmo_dissolve.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/bmesh/operators/bmo_dissolve.c b/source/blender/bmesh/operators/bmo_dissolve.c index 7813e30e2a8..b80df4cce58 100644 --- a/source/blender/bmesh/operators/bmo_dissolve.c +++ b/source/blender/bmesh/operators/bmo_dissolve.c @@ -184,7 +184,7 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op) if (BMO_error_occurred(bm)) { BMO_error_clear(bm); - BMO_error_raise(bm, op, BMERR_DISSOLVEFACES_FAILED, NULL); + BMO_error_raise(bm, op, "Could not dissolve faces"); goto cleanup; } @@ -201,8 +201,7 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op) faces = regions[i]; if (!faces[0]) { - BMO_error_raise( - bm, op, BMERR_DISSOLVEFACES_FAILED, "Could not find boundary of dissolve region"); + BMO_error_raise(bm, op, "Could not find boundary of dissolve region"); goto cleanup; } @@ -220,7 +219,7 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op) totface_target -= tot - 1; } else { - BMO_error_raise(bm, op, BMERR_DISSOLVEFACES_FAILED, "Could not create merged face"); + BMO_error_raise(bm, op, "Could not create merged face"); goto cleanup; } |