exiting editmesh when in face select mode could result in hidden and selected faces.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 13 Mar 2007 03:05:12 +0000 (03:05 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 13 Mar 2007 03:05:12 +0000 (03:05 +0000)
source/blender/src/editmesh.c

index f1d6e77fc3fe6ce6f0c63839364bc962c0bb4f81..41597b4fac6db96bdf787676c8e259a2886a008d 100644 (file)
@@ -1096,9 +1096,14 @@ void load_editMesh(void)
                
                mface->flag= efa->flag;
                /* bit 0 of flag is already taken for smooth... */
-               if(efa->f & 1) mface->flag |= ME_FACE_SEL;
-               else mface->flag &= ~ME_FACE_SEL;
-               if(efa->h) mface->flag |= ME_HIDE;
+               
+               if(efa->h) {
+                       mface->flag |= ME_HIDE;
+                       mface->flag &= ~ME_FACE_SEL;
+               } else {
+                       if(efa->f & 1) mface->flag |= ME_FACE_SEL;
+                       else mface->flag &= ~ME_FACE_SEL;
+               }
                
                /* mat_nr in vertex */
                if(me->totcol>1) {