Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mesh_convert.c
| Show First 20 Lines • Show All 1,335 Lines • ▼ Show 20 Lines | Mesh *BKE_mesh_create_derived_for_modifier(struct Depsgraph *depsgraph, | ||||
| else { | else { | ||||
| Mesh *mesh_temp; | Mesh *mesh_temp; | ||||
| BKE_id_copy_ex(NULL, &me->id, (ID **)&mesh_temp, LIB_ID_COPY_LOCALIZE); | BKE_id_copy_ex(NULL, &me->id, (ID **)&mesh_temp, LIB_ID_COPY_LOCALIZE); | ||||
| if (build_shapekey_layers) { | if (build_shapekey_layers) { | ||||
| add_shapekey_layers(mesh_temp, me); | add_shapekey_layers(mesh_temp, me); | ||||
| } | } | ||||
| result = mti->applyModifier(md_eval, &mectx, mesh_temp); | result = mti->modifyMesh(md_eval, &mectx, mesh_temp); | ||||
| ASSERT_IS_VALID_MESH(result); | ASSERT_IS_VALID_MESH(result); | ||||
| if (mesh_temp != result) { | if (mesh_temp != result) { | ||||
| BKE_id_free(NULL, mesh_temp); | BKE_id_free(NULL, mesh_temp); | ||||
| } | } | ||||
| } | } | ||||
| return result; | return result; | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||