Fix T61360: Weight paint tools ignore face select
authorCampbell Barton <ideasman42@gmail.com>
Thu, 14 Feb 2019 00:47:23 +0000 (11:47 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 14 Feb 2019 00:47:23 +0000 (11:47 +1100)
Face selection was added in weight paint mode since 2.7x,
however tools hadn't been updated.

source/blender/editors/object/object_vgroup.c

index e1c1810..e3bfd02 100644 (file)
@@ -80,7 +80,9 @@ static bool vertex_group_use_vert_sel(Object *ob)
        if (ob->mode == OB_MODE_EDIT) {
                return true;
        }
-       else if (ob->type == OB_MESH && ((Mesh *)ob->data)->editflag & ME_EDIT_PAINT_VERT_SEL) {
+       else if ((ob->type == OB_MESH) &&
+                ((Mesh *)ob->data)->editflag & (ME_EDIT_PAINT_VERT_SEL | ME_EDIT_PAINT_FACE_SEL))
+       {
                return true;
        }
        else {