dont use tface hide or select anymore, since maintaining 2 sets of hide/select data...
[blender.git] / source / blender / src / header_view3d.c
index 42ba1a70a55b50605cf107e7a0e2455f6d319edc..06a86a3f8eaf8af2560d535a42253eb6bee8d63f 100644 (file)
@@ -4399,6 +4399,7 @@ static void do_view3d_faceselmenu(void *arg, int event)
                would be nice if it was split up into functions */
        Mesh *me;
        MTFace *tf, *activetf;
+       MFace *mf;
        MCol *activemcol;
        int a;
        
@@ -4410,8 +4411,9 @@ static void do_view3d_faceselmenu(void *arg, int event)
                activetf = get_active_tface(&activemcol);
 
                if (me && activetf) {
-                       for (a=0, tf=me->mtface; a < me->totface; a++, tf++) {
-                               if(tf!=activetf && (tf->flag & TF_SELECT)) {
+                       mf = me->mface;
+                       for (a=0, tf=me->mtface; a < me->totface; a++, tf++, mf++) {
+                               if(tf!=activetf && (mf->flag & ME_FACE_SEL)) {
                                        if(event==0) {
                                                tf->mode= activetf->mode;
                                                tf->transp= activetf->transp;