diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-07 05:18:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-07 05:18:52 +0400 |
commit | 6774e727a28186258b6bfa443da0ef7aec280be3 (patch) | |
tree | 3ab6b71f91a076a08984ae549b1dfb64d6fb9ac2 | |
parent | 7bdb7331b586b5f4424a17d23275389673c18603 (diff) |
remove error checks for inset, adding a faces in this instance wont fail (or if it does - theres a bug elsewhere).
-rw-r--r-- | source/blender/bmesh/operators/bmo_inset.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/source/blender/bmesh/operators/bmo_inset.c b/source/blender/bmesh/operators/bmo_inset.c index d8ed511bc94..5f4934052d1 100644 --- a/source/blender/bmesh/operators/bmo_inset.c +++ b/source/blender/bmesh/operators/bmo_inset.c @@ -156,13 +156,7 @@ void bmo_inset_individual_exec(BMesh *bm, BMOperator *op) BMFace *f_new_inner; /* Create New Inset Faces */ f_new_inner = BM_face_create(bm, f_verts, f_edges, f->len, 0); - if (UNLIKELY(f_new_inner == NULL)) { - BMO_error_raise(bm, op, BMERR_MESH_ERROR, "Inset failed: could not create inner face."); - BLI_array_free(f_edges); - BLI_array_free(f_verts); - BLI_array_free(eiinfo_arr); - return; - } + BLI_assert(f_new_inner != NULL); /* no reason it should fail */ /* Copy Face Data */ BM_elem_attrs_copy(bm, bm, f, f_new_inner); @@ -192,13 +186,7 @@ void bmo_inset_individual_exec(BMesh *bm, BMOperator *op) l_iter_inner->v, f, false); - if (UNLIKELY(f_new_outer == NULL)) { - BMO_error_raise(bm, op, BMERR_MESH_ERROR, "Inset failed: could not create an outer face."); - BLI_array_free(f_edges); - BLI_array_free(f_verts); - BLI_array_free(eiinfo_arr); - return; - } + BLI_assert(f_new_outer != NULL); /* no reason it should fail */ BM_elem_attrs_copy(bm, bm, f, f_new_outer); BMO_elem_flag_enable(bm, f_new_outer, ELE_NEW); |