Fix missing error message on convex hull failure

Also remove unused errors.
This commit is contained in:
Campbell Barton 2020-02-20 11:18:40 +11:00
parent 146fe1decf
commit 71d6fbcd51
2 changed files with 3 additions and 12 deletions

View File

@ -54,13 +54,8 @@ void BMO_error_clear(BMesh *bm);
/*error messages*/
enum {
BMERR_SELF_INTERSECTING = 1,
BMERR_DISSOLVEDISK_FAILED,
BMERR_CONNECTVERT_FAILED,
BMERR_WALKER_FAILED,
BMERR_CONNECTVERT_FAILED = 1,
BMERR_DISSOLVEFACES_FAILED,
BMERR_TESSELLATION,
BMERR_NONMANIFOLD,
BMERR_INVALID_SELECTION,
BMERR_MESH_ERROR,
BMERR_CONVEX_HULL_FAILED,

View File

@ -44,18 +44,14 @@ static int bmo_name_to_slotcode_check(BMOpSlot slot_args[BMO_OP_MAX_SLOTS],
static const char *bmo_error_messages[] = {
NULL,
N_("Self intersection error"),
N_("Could not dissolve vert"),
N_("Could not connect vertices"),
N_("Could not traverse mesh"),
N_("Could not dissolve faces"),
N_("Tessellation error"),
N_("Cannot deal with non-manifold geometry"),
N_("Invalid selection"),
N_("Internal mesh error"),
N_("Convex hull failed"),
};
BLI_STATIC_ASSERT(ARRAY_SIZE(bmo_error_messages) + 1 == BMERR_TOTAL, "message mismatch");
BLI_STATIC_ASSERT(ARRAY_SIZE(bmo_error_messages) == BMERR_TOTAL, "message mismatch");
/* operator slot type information - size of one element of the type given. */
const int BMO_OPSLOT_TYPEINFO[BMO_OP_SLOT_TOTAL_TYPES] = {