From 4f1a6eb96f44aaf13217d806abed646cd2e3f470 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 6 Mar 2014 03:07:31 +1100 Subject: Fix T38970: Invert weights remove weights option not working Patch D382 from Henrik Aarnio --- source/blender/editors/object/object_vgroup.c | 10 +++++----- 1 file 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); -- cgit v1.2.3