fix for bug introduced with weight paint vertex selection.
authorCampbell Barton <ideasman42@gmail.com>
Mon, 13 Feb 2012 03:32:47 +0000 (03:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 13 Feb 2012 03:32:47 +0000 (03:32 +0000)
heat weighting ignored selected faces.

source/blender/editors/armature/meshlaplacian.c

index e33b778..319b2c7 100644 (file)
@@ -682,8 +682,8 @@ void heat_bone_weighting(Object *ob, Mesh *me, float (*verts)[3], int numsource,
                                mask[mface->v4]= (mvert[mface->v4].flag & SELECT) != 0;
                        }
                }
-               else {
-                       if(use_face_sel) {
+               else if (use_face_sel) {
+                       if (mface->flag & ME_FACE_SEL) {
                                mask[mface->v1]= 1;
                                mask[mface->v2]= 1;
                                mask[mface->v3]= 1;