Changeset View
Changeset View
Standalone View
Standalone View
source/blender/bmesh/intern/bmesh_mesh_conv.c
| Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | void BM_mesh_bm_from_me(BMesh *bm, const Mesh *me, const struct BMeshFromMeshParams *params) | ||||
| if ((params->active_shapekey != 0) && (me->key != NULL)) { | if ((params->active_shapekey != 0) && (me->key != NULL)) { | ||||
| actkey = BLI_findlink(&me->key->block, params->active_shapekey - 1); | actkey = BLI_findlink(&me->key->block, params->active_shapekey - 1); | ||||
| } | } | ||||
| else { | else { | ||||
| actkey = NULL; | actkey = NULL; | ||||
| } | } | ||||
| if (params->add_facemap_layer) { | |||||
| CustomData_add_layer(&bm->pdata, CD_FACEMAP, CD_DEFAULT, NULL, 0); | |||||
| } | |||||
| if (is_new) { | if (is_new) { | ||||
| if (tot_shape_keys || params->add_key_index) { | if (tot_shape_keys || params->add_key_index) { | ||||
| CustomData_add_layer(&bm->vdata, CD_SHAPE_KEYINDEX, CD_ASSIGN, NULL, 0); | CustomData_add_layer(&bm->vdata, CD_SHAPE_KEYINDEX, CD_ASSIGN, NULL, 0); | ||||
| } | } | ||||
| } | } | ||||
| if (tot_shape_keys) { | if (tot_shape_keys) { | ||||
| if (is_new) { | if (is_new) { | ||||
| ▲ Show 20 Lines • Show All 893 Lines • Show Last 20 Lines | |||||