Bugfix #3423
authorTon Roosendaal <ton@blender.org>
Sun, 20 Nov 2005 22:12:18 +0000 (22:12 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 20 Nov 2005 22:12:18 +0000 (22:12 +0000)
Extrude faces assigned arbitrary colors to the new faces when an edge
shared 2 faces with different colors. Now only assigns colors for the
selected faces.

source/blender/src/editmesh_lib.c

index 8580cd9a54a7bf4619d31ef5a8df457791187762..e9289fb2e5bc9284e73c6d6e18aca8631944837f 100644 (file)
@@ -725,6 +725,12 @@ static short extrudeflag_edge(short flag, float *nor)
                        efa->e2->f2++;
                        efa->e3->f2++;
                        if(efa->e4) efa->e4->f2++;
+                       
+                       // sample for next loop
+                       efa->e1->vn= (EditVert *)efa;
+                       efa->e2->vn= (EditVert *)efa;
+                       efa->e3->vn= (EditVert *)efa;
+                       if(efa->e4) efa->e4->vn= (EditVert *)efa;
                }
                else {
                        efa->e1->f1++;
@@ -732,11 +738,6 @@ static short extrudeflag_edge(short flag, float *nor)
                        efa->e3->f1++;
                        if(efa->e4) efa->e4->f1++;
                }
-               // sample for next loop
-               efa->e1->vn= (EditVert *)efa;
-               efa->e2->vn= (EditVert *)efa;
-               efa->e3->vn= (EditVert *)efa;
-               if(efa->e4) efa->e4->vn= (EditVert *)efa;
        }
        
        set_edge_directions_f2(2);