Fix T38970: Invert weights remove weights option not working
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Mar 2014 16:07:31 +0000 (03:07 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Mar 2014 16:07:31 +0000 (03:07 +1100)
Patch D382 from Henrik Aarnio

source/blender/editors/object/object_vgroup.c

index 7a219f2a9d7469e69260955386af673fea717087..a7b5ba98b13b24980b8e00952620d00618d0f092 100644 (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);