fix for weight paint vertex select, it broke vertex paint when left on.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 15 Oct 2011 01:32:49 +0000 (01:32 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 15 Oct 2011 01:32:49 +0000 (01:32 +0000)
source/blender/editors/space_view3d/drawobject.c

index df1c743b5cdbd9e63e86bf996ccc0c1a309b059b..eb2e821e398217b4e1e9277f767e8d7b44e80d4d 100644 (file)
@@ -6723,7 +6723,10 @@ void draw_object_backbufsel(Scene *scene, View3D *v3d, RegionView3D *rv3d, Objec
                }
                else {
                        Mesh *me= ob->data;
-                       if(me->editflag & ME_EDIT_VERT_SEL) {
+                       if(     (me->editflag & ME_EDIT_VERT_SEL) &&
+                               /* currently vertex select only supports weight paint */
+                               (ob->mode & OB_MODE_WEIGHT_PAINT))
+                       {
                                DerivedMesh *dm = mesh_get_derived_final(scene, ob, scene->customdata_mask);
                                glColor3ub(0, 0, 0);