diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-05 20:07:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-05 20:07:31 +0400 |
commit | 4f1a6eb96f44aaf13217d806abed646cd2e3f470 (patch) | |
tree | dd726800f5786f3480288c02dfa65124b7372bce | |
parent | dd13bbca15e2fbd094f4b52490275087f9d57b57 (diff) |
Fix T38970: Invert weights remove weights option not working
Patch D382 from Henrik Aarnio
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 7a219f2a9d7..a7b5ba98b13 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -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); |