diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-12-07 18:30:09 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-12-07 18:30:14 +0300 |
commit | c51a70537b12946bd8e7e66d29ef438a41a8801a (patch) | |
tree | 253c7ddd5a2af7eedb974b9d1a047fa703d66b84 /source | |
parent | 2e221de4ceeedcaf6e322d9cd72b148cb04cdac4 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex_weight_ops.c | 9 |
1 files changed, 2 insertions, 7 deletions
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)); |