Fix T38970: Invert weights remove weights option not working

Patch D382 from Henrik Aarnio
This commit is contained in:
Campbell Barton 2014-03-06 03:07:31 +11:00
parent dd13bbca15
commit 4f1a6eb96f
Notes: blender-bot 2023-02-14 11:03:55 +01:00
Referenced by issue #38970, Weight Tools Panel > Invert Tool - Remove Weights Bug?
1 changed files with 5 additions and 5 deletions

View File

@ -2173,12 +2173,12 @@ static void vgroup_invert_subset(Object *ob,
if (use_mirror && use_vert_sel) {
ED_vgroup_parray_mirror_sync(ob, dvert_array, dvert_tot,
vgroup_validmap, vgroup_tot);
}
if (auto_remove) {
ED_vgroup_parray_remove_zero(dvert_array, dvert_tot,
vgroup_validmap, vgroup_tot,
0.0f, false);
}
if (auto_remove) {
ED_vgroup_parray_remove_zero(dvert_array, dvert_tot,
vgroup_validmap, vgroup_tot,
0.0f, false);
}
MEM_freeN(dvert_array);