Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/editmesh.c
| Show First 20 Lines • Show All 300 Lines • ▼ Show 20 Lines | const float (*BKE_editmesh_vert_coords_when_deformed(struct Depsgraph *depsgraph, | ||||
| Mesh *me = ob->data; | Mesh *me = ob->data; | ||||
| if ((me->runtime.edit_data != NULL) && (me->runtime.edit_data->vertexCos != NULL)) { | if ((me->runtime.edit_data != NULL) && (me->runtime.edit_data->vertexCos != NULL)) { | ||||
| /* Deformed, and we have deformed coords already. */ | /* Deformed, and we have deformed coords already. */ | ||||
| coords = me->runtime.edit_data->vertexCos; | coords = me->runtime.edit_data->vertexCos; | ||||
| } | } | ||||
| else if ((em->mesh_eval_final != NULL) && | else if ((em->mesh_eval_final != NULL) && | ||||
| (em->mesh_eval_final->runtime.wrapper_type == ME_WRAPPER_TYPE_BMESH)) { | (em->mesh_eval_final->runtime.wrapper_type == ME_WRAPPER_TYPE_BMESH)) { | ||||
| /* If this is an edit-mesh type, leave NULL as we can use the vertex coords. . */ | /* If this is an edit-mesh type, leave NULL as we can use the vertex coords. */ | ||||
| } | } | ||||
| else { | else { | ||||
| /* Constructive modifiers have been used, we need to allocate coordinates. */ | /* Constructive modifiers have been used, we need to allocate coordinates. */ | ||||
| *r_is_alloc = true; | *r_is_alloc = true; | ||||
| coords = BKE_editmesh_vert_coords_alloc(depsgraph, em, scene, ob, r_vert_len); | coords = BKE_editmesh_vert_coords_alloc(depsgraph, em, scene, ob, r_vert_len); | ||||
| } | } | ||||
| return coords; | return coords; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||