Cleanup: vpaint face select de-selected twice
authorCampbell Barton <ideasman42@gmail.com>
Tue, 14 Aug 2018 07:37:59 +0000 (17:37 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 14 Aug 2018 07:37:59 +0000 (17:37 +1000)
source/blender/editors/mesh/editface.c

index 899f192422204b55feeca167f1294deb0a56426d..d497a073f778514b7595b22951b4a65f6c6d9669 100644 (file)
@@ -414,12 +414,6 @@ int do_paintface_box_select(ViewContext *vc, rcti *rect, bool select, bool exten
 
        if (extend == false && select) {
                paintface_deselect_all_visible(vc->obact, SEL_DESELECT, false);
-
-               mpoly = me->mpoly;
-               for (a = 1; a <= me->totpoly; a++, mpoly++) {
-                       if ((mpoly->flag & ME_HIDE) == 0)
-                               mpoly->flag &= ~ME_FACE_SEL;
-               }
        }
 
        ED_view3d_backbuf_validate(vc);