Bugfix #17921
authorTon Roosendaal <ton@blender.org>
Mon, 3 Nov 2008 13:00:39 +0000 (13:00 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 3 Nov 2008 13:00:39 +0000 (13:00 +0000)
ALT+select face-loop on mesh with hidden faces ignored the hidden part.
Also caused errors on deleting faces that way.

source/blender/src/editmesh_mods.c

index 81d0ffeeb3bc4424214e3bb413b81e88828a3d8d..3dbbe7d73363a68daff6f19819a03eb30da7b10b 100644 (file)
@@ -1864,7 +1864,7 @@ void faceloop_select(EditEdge *startedge, int select)
                looking= 0;
                
                for(efa= em->faces.first; efa; efa= efa->next) {
-                       if(efa->e4 && efa->f1==0) {     /* not done quad */
+                       if(efa->h==0 && efa->e4 && efa->f1==0) {        /* not done quad */
                                if(efa->e1->f1<=2 && efa->e2->f1<=2 && efa->e3->f1<=2 && efa->e4->f1<=2) { /* valence ok */
 
                                        /* if edge tagged, select opposing edge and mark face ok */