From c51a70537b12946bd8e7e66d29ef438a41a8801a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 7 Dec 2020 16:30:09 +0100 Subject: Fix T81745: Auto Weights fails with Mirror mod + Vertex Groups X Fix the Assign Automatic Weights operator in weight paint mode when the Vertex Groups X option is enabled. This issue was probably introduced in rB5502517c3c12 where `me->editflag & ME_EDIT_MIRROR_X` was replaced by either `me->editflag & ME_EDIT_VERTEX_GROUPS_X_SYMMETRY` or `me->symmetry & ME_SYMMETRY_X`. In this case, the former wasn't working, so I replaced it with the latter. --- source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c index eea79bad789..8eb2ebd0f19 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c +++ b/source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c @@ -120,13 +120,8 @@ static int weight_from_bones_exec(bContext *C, wmOperator *op) Mesh *me = ob->data; int type = RNA_enum_get(op->ptr, "type"); - ED_object_vgroup_calc_from_armature(op->reports, - depsgraph, - scene, - ob, - armob, - type, - (me->editflag & ME_EDIT_VERTEX_GROUPS_X_SYMMETRY)); + ED_object_vgroup_calc_from_armature( + op->reports, depsgraph, scene, ob, armob, type, (me->symmetry & ME_SYMMETRY_X)); DEG_id_tag_update(&me->id, 0); DEG_relations_tag_update(CTX_data_main(C)); -- cgit v1.2.3