Fix active bone flip not activating the wpaint vertex group
authorCampbell Barton <ideasman42@gmail.com>
Fri, 15 Nov 2019 16:32:23 +0000 (03:32 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 15 Nov 2019 16:32:23 +0000 (03:32 +1100)
source/blender/editors/armature/pose_select.c

index a60b9c56dc6f7fe62ce392e29ecec7b058adaa20..0c359b2a757a8861526a3e7a39357df86dc81047 100644 (file)
@@ -1170,8 +1170,8 @@ static int pose_select_mirror_exec(bContext *C, wmOperator *op)
 
       /* In weightpaint we select the associated vertex group too. */
       if (is_weight_paint) {
-        ED_vgroup_select_by_name(ob, pchan_mirror_act->name);
-        DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
+        ED_vgroup_select_by_name(ob_active, pchan_mirror_act->name);
+        DEG_id_tag_update(&ob_active->id, ID_RECALC_GEOMETRY);
       }
     }