Cleanup: remove use_normals arugment to MOD_deform_mesh_eval_get

Accessing the normals creates them on demand so there was no need
to pass an argument requesting them.
This commit is contained in:
2022-08-12 22:08:48 +10:00
parent afc71a0512
commit 223d623891
23 changed files with 36 additions and 68 deletions

View File

@@ -169,7 +169,6 @@ Mesh *MOD_deform_mesh_eval_get(Object *ob,
Mesh *mesh,
const float (*vertexCos)[3],
const int verts_num,
const bool use_normals,
const bool use_orco)
{
if (mesh != NULL) {
@@ -217,14 +216,6 @@ Mesh *MOD_deform_mesh_eval_get(Object *ob,
}
}
/* TODO: Remove this "use_normals" argument, since the caller should retrieve normals afterwards
* if necessary. */
if (use_normals) {
if (LIKELY(mesh)) {
BKE_mesh_vertex_normals_ensure(mesh);
}
}
if (mesh && mesh->runtime.wrapper_type == ME_WRAPPER_TYPE_MDATA) {
BLI_assert(mesh->totvert == verts_num);
}