Bugfix #17633
authorTon Roosendaal <ton@blender.org>
Tue, 16 Sep 2008 15:28:07 +0000 (15:28 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 16 Sep 2008 15:28:07 +0000 (15:28 +0000)
Tiny feature: "Flip normals" in editmode also recalculates vertex normals.

source/blender/src/editmesh_lib.c

index 4d9679b6b8a172342067a7e40996f6a246e7f53e..1aa1642d5972fca8d8f4f5b9b7fe235aca2e7cb1 100644 (file)
@@ -1906,6 +1906,7 @@ void flip_editnormals(void)
 {
        EditMesh *em = G.editMesh;
        EditFace *efa;
+       EditVert *eve;
        
        efa= em->faces.first;
        while(efa) {
@@ -1914,6 +1915,10 @@ void flip_editnormals(void)
                }
                efa= efa->next;
        }
+       
+       /* update vertex normals too */
+       recalc_editnormals();
+       
 #ifdef WITH_VERSE
        if(G.editMesh->vnode)
                sync_all_versefaces_with_editfaces((VNode*)G.editMesh->vnode);