Cleanup: vertex coordinate access, naming & minor changes

This also splits vertex access and allocation so it's possible
to copy coordinates into an existing array without allocating it.
This commit is contained in:
2019-08-22 06:28:35 +10:00
parent 4a2d1953f3
commit 189aa32a3a
35 changed files with 220 additions and 217 deletions

View File

@@ -130,7 +130,7 @@ static void deformVerts(ModifierData *md,
float *vec;
MVert *x, *v;
BKE_mesh_apply_vert_coords(surmd->mesh, vertexCos);
BKE_mesh_vert_coords_apply(surmd->mesh, vertexCos);
BKE_mesh_calc_normals(surmd->mesh);
numverts = surmd->mesh->totvert;