Fix #29141: fill / beautify fill produced incorrect results in edge selection mode.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 5 Nov 2011 00:52:01 +0000 (00:52 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 5 Nov 2011 00:52:01 +0000 (00:52 +0000)
source/blender/editors/mesh/editmesh_tools.c

index 54b46cc14a66031e10d19af091b63ee44c598213..99af17c161e5db16d56a47c870770a2ba4d2b088 100644 (file)
@@ -6970,12 +6970,12 @@ static void beautify_fill(EditMesh *em)
 
                                                                        w= EM_face_from_faces(em, efaa[0], efaa[1],
                                                                                                                  vindex[0], vindex[1], 4+vindex[2], -1);
-                                                                       w->f |= SELECT;
+                                                                       EM_select_face(w, 1);
 
 
                                                                        w= EM_face_from_faces(em, efaa[0], efaa[1],
                                                                                                                  vindex[0], 4+vindex[2], 4+vindex[3], -1);
-                                                                       w->f |= SELECT;
+                                                                       EM_select_face(w, 1);
 
                                                                        onedone= 1;
                                                                }
@@ -6991,12 +6991,11 @@ static void beautify_fill(EditMesh *em)
 
                                                                        w= EM_face_from_faces(em, efaa[0], efaa[1],
                                                                                                                  vindex[1], 4+vindex[2], 4+vindex[3], -1);
-                                                                       w->f |= SELECT;
-
+                                                                       EM_select_face(w, 1);
 
                                                                        w= EM_face_from_faces(em, efaa[0], efaa[1],
                                                                                                                  vindex[0], 4+vindex[1], 4+vindex[3], -1);
-                                                                       w->f |= SELECT;
+                                                                       EM_select_face(w, 1);
 
                                                                        onedone= 1;
                                                                }