Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_polygon.c
| Show First 20 Lines • Show All 940 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| const int cd_loop_mdisp_offset = CustomData_get_offset(&bm->ldata, CD_MDISPS); | const int cd_loop_mdisp_offset = CustomData_get_offset(&bm->ldata, CD_MDISPS); | ||||
| const bool use_beauty = (ngon_method == MOD_TRIANGULATE_NGON_BEAUTY); | const bool use_beauty = (ngon_method == MOD_TRIANGULATE_NGON_BEAUTY); | ||||
| BMLoop *l_first, *l_new; | BMLoop *l_first, *l_new; | ||||
| BMFace *f_new; | BMFace *f_new; | ||||
| int nf_i = 0; | int nf_i = 0; | ||||
| int ne_i = 0; | int ne_i = 0; | ||||
| BLI_assert(BM_face_is_normal_valid(f)); | //BLI_assert(BM_face_is_normal_valid(f)); | ||||
| /* ensure both are valid or NULL */ | /* ensure both are valid or NULL */ | ||||
| BLI_assert((r_faces_new == NULL) == (r_faces_new_tot == NULL)); | BLI_assert((r_faces_new == NULL) == (r_faces_new_tot == NULL)); | ||||
| BLI_assert(f->len > 3); | BLI_assert(f->len > 3); | ||||
| { | { | ||||
| BMLoop **loops = BLI_array_alloca(loops, f->len); | BMLoop **loops = BLI_array_alloca(loops, f->len); | ||||
| ▲ Show 20 Lines • Show All 685 Lines • Show Last 20 Lines | |||||