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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user