bmesh regression with extrude.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 1 Mar 2012 16:12:11 +0000 (16:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 1 Mar 2012 16:12:11 +0000 (16:12 +0000)
Extruding an edge where both verts were clipped would not create a face for this edge.

This is ok when a connected face is also extruded but not when the edge is selected on its own.

source/blender/editors/mesh/bmesh_tools.c

index 55b42ae7c29c4ca8185c34583ac0c84af5cfeb27..e7a3c3337f0a0de7d63255a03e9e275d27efa851 100644 (file)
@@ -271,7 +271,10 @@ static short EDBM_Extrude_edge(Object *obedit, BMEditMesh *em, const char hflag,
                                     edge;
                                     edge = BM_iter_step(&iter))
                                {
-                                       if (BM_elem_flag_test(edge, hflag)) {
+                                       if (BM_elem_flag_test(edge, hflag) &&
+                                           BM_edge_is_boundary(edge) &&
+                                           BM_elem_flag_test(edge->l->f, hflag))
+                                       {
                                                float co1[3], co2[3];
 
                                                copy_v3_v3(co1, edge->v1->co);