Fixed a crafty little bug that only seemed to show up in 'Rotate Edges'.
authorSimon Clitherow <aphex@nildram.co.uk>
Thu, 9 Dec 2004 22:11:40 +0000 (22:11 +0000)
committerSimon Clitherow <aphex@nildram.co.uk>
Thu, 9 Dec 2004 22:11:40 +0000 (22:11 +0000)
Rotated edges (seemingly on quads only) were not drawn even if
'Draw All Edges' is active.

Finally tracked the bug down to a typo in flag checks! Eeugh, was much
head scratching on this one! :)

source/blender/src/editmesh.c

index d3277edafe2c9d636a58b02cf859f95abc3cee72..ddc3be4addd88db5f5d4932db69528bb452c8e36 100644 (file)
@@ -568,7 +568,7 @@ static void edge_drawflags(void)
                if(e1->f2<3) e1->f2+= 1;
                if(e2->f2<3) e2->f2+= 1;
                if(e3->f2<3) e3->f2+= 1;
-               if(e4 && e4->f<3) e4->f2+= 1;
+               if(e4 && e4->f2<3) e4->f2+= 1;
                
                if(e1->vn==0) e1->vn= (EditVert *)efa;
                if(e2->vn==0) e2->vn= (EditVert *)efa;
@@ -584,7 +584,7 @@ static void edge_drawflags(void)
                        if(efa->e1->f2>=2) efa->e1->f2= 1;
                        if(efa->e2->f2>=2) efa->e2->f2= 1;
                        if(efa->e3->f2>=2) efa->e3->f2= 1;
-                       if(efa->e4 && efa->e4->f>=2) efa->e4->f2= 1;
+                       if(efa->e4 && efa->e4->f2>=2) efa->e4->f2= 1;
                        
                        efa= efa->next;
                }