diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 04:50:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-06 04:56:44 +0300 |
commit | bba4a09b2f0b73f0a38e1eccc403a4cef536f703 (patch) | |
tree | 4fcd36e2643a2e4d476d3bcf00c346e7ac81c642 /source/blender/modifiers/intern/MOD_mask.cc | |
parent | 1af83aa2dd895ca0e6e7a31d64c19ef4d3241298 (diff) |
Cleanup: use 'BKE_' prefix for BKE_deform API calls
- Use 'BKE_object_defgroup' prefix for object functions.
- Rename 'defvert_verify_index' to 'defvert_ensure_index'
since this adds the group if it isn't found.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_mask.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_mask.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_mask.cc b/source/blender/modifiers/intern/MOD_mask.cc index fb179d2e485..0b2981fca36 100644 --- a/source/blender/modifiers/intern/MOD_mask.cc +++ b/source/blender/modifiers/intern/MOD_mask.cc @@ -124,7 +124,7 @@ static void compute_vertex_mask__vertex_group_mode(MDeformVert *dvert, MutableArrayRef<bool> r_vertex_mask) { for (int i : r_vertex_mask.index_range()) { - const bool found = defvert_find_weight(&dvert[i], defgrp_index) > threshold; + const bool found = BKE_defvert_find_weight(&dvert[i], defgrp_index) > threshold; r_vertex_mask[i] = found; } } @@ -324,7 +324,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes compute_vertex_mask__armature_mode(dvert, ob, armature_ob, mmd->threshold, vertex_mask); } else { - int defgrp_index = defgroup_name_index(ob, mmd->vgroup); + int defgrp_index = BKE_object_defgroup_name_index(ob, mmd->vgroup); /* Return input mesh if the vertex group does not exist. */ if (defgrp_index == -1) { |