Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_mesh.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | group_tot = BM_mesh_calc_edge_groups( | ||||
| bm, groups_array, &group_index, NULL, NULL, BM_ELEM_SELECT); | bm, groups_array, &group_index, NULL, NULL, BM_ELEM_SELECT); | ||||
| htype = BM_EDGE; | htype = BM_EDGE; | ||||
| itype = BM_VERTS_OF_EDGE; | itype = BM_VERTS_OF_EDGE; | ||||
| } | } | ||||
| else { /* (bm->selectmode & SCE_SELECT_FACE) */ | else { /* (bm->selectmode & SCE_SELECT_FACE) */ | ||||
| groups_array = MEM_mallocN(sizeof(*groups_array) * bm->totfacesel, __func__); | groups_array = MEM_mallocN(sizeof(*groups_array) * bm->totfacesel, __func__); | ||||
| group_tot = BM_mesh_calc_face_groups( | group_tot = BM_mesh_calc_face_groups( | ||||
| bm, groups_array, &group_index, NULL, NULL, BM_ELEM_SELECT, BM_VERT); | bm, groups_array, &group_index, NULL, NULL, NULL, BM_ELEM_SELECT, BM_VERT); | ||||
| htype = BM_FACE; | htype = BM_FACE; | ||||
| itype = BM_VERTS_OF_FACE; | itype = BM_VERTS_OF_FACE; | ||||
| } | } | ||||
| if (calc_island_center) { | if (calc_island_center) { | ||||
| center = MEM_mallocN(sizeof(*center) * group_tot, __func__); | center = MEM_mallocN(sizeof(*center) * group_tot, __func__); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,543 Lines • Show Last 20 Lines | |||||