Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/displist.c
| Show First 20 Lines • Show All 1,089 Lines • ▼ Show 20 Lines | else { | ||||
| /* Vertex coordinates were applied to necessary data, could free it */ | /* Vertex coordinates were applied to necessary data, could free it */ | ||||
| MEM_freeN(vertCos); | MEM_freeN(vertCos); | ||||
| vertCos = NULL; | vertCos = NULL; | ||||
| } | } | ||||
| if (need_normal) { | if (need_normal) { | ||||
| BKE_mesh_ensure_normals(modified); | BKE_mesh_ensure_normals(modified); | ||||
| } | } | ||||
| mesh_applied = mti->applyModifier(md, &mectx_apply, modified); | mesh_applied = mti->modifyMesh(md, &mectx_apply, modified); | ||||
| if (mesh_applied) { | if (mesh_applied) { | ||||
| /* Modifier returned a new derived mesh */ | /* Modifier returned a new derived mesh */ | ||||
| if (modified && modified != mesh_applied) { /* Modifier */ | if (modified && modified != mesh_applied) { /* Modifier */ | ||||
| BKE_id_free(NULL, modified); | BKE_id_free(NULL, modified); | ||||
| } | } | ||||
| modified = mesh_applied; | modified = mesh_applied; | ||||
| ▲ Show 20 Lines • Show All 771 Lines • Show Last 20 Lines | |||||