Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/customdata.c
| Show First 20 Lines • Show All 3,551 Lines • ▼ Show 20 Lines | case BM_LOOP: | ||||
| iter_type = BM_LOOPS_OF_FACE; | iter_type = BM_LOOPS_OF_FACE; | ||||
| totelem = bm->totloop; | totelem = bm->totloop; | ||||
| break; | break; | ||||
| case BM_FACE: | case BM_FACE: | ||||
| iter_type = BM_FACES_OF_MESH; | iter_type = BM_FACES_OF_MESH; | ||||
| totelem = bm->totface; | totelem = bm->totface; | ||||
| break; | break; | ||||
| default: /* should never happen */ | default: /* should never happen */ | ||||
| BLI_assert(!"invalid type given"); | BLI_assert_msg(0, "invalid type given"); | ||||
| iter_type = BM_VERTS_OF_MESH; | iter_type = BM_VERTS_OF_MESH; | ||||
| totelem = bm->totvert; | totelem = bm->totvert; | ||||
| break; | break; | ||||
| } | } | ||||
| dest->pool = NULL; | dest->pool = NULL; | ||||
| CustomData_bmesh_init_pool(dest, totelem, htype); | CustomData_bmesh_init_pool(dest, totelem, htype); | ||||
| ▲ Show 20 Lines • Show All 1,658 Lines • Show Last 20 Lines | |||||