Cleanup: use const args & variables, remove redundant checks

- Declare const variables & arguments.
- Remove redundant null checks.
- Remove break after return.
- Replace suspicious "&" with "&&".
This commit is contained in:
Campbell Barton
2024-04-15 09:44:27 +10:00
parent 740d1fbc4b
commit 49bf7ebbdd
21 changed files with 54 additions and 53 deletions

View File

@@ -441,10 +441,10 @@ static void deform_verts(ModifierData *md,
void BKE_modifier_mdef_compact_influences(ModifierData *md)
{
MeshDeformModifierData *mmd = (MeshDeformModifierData *)md;
float weight, *weights, totweight;
float weight, totweight;
int influences_num, verts_num, cage_verts_num, a, b;
weights = mmd->bindweights;
const float *weights = mmd->bindweights;
if (!weights) {
return;
}