ignore hidden edges for bmesh grid-fill.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2013 12:26:14 +0000 (12:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 May 2013 12:26:14 +0000 (12:26 +0000)
source/blender/bmesh/operators/bmo_grid_fill.c

index 21325cf05b233cf7e40ec6768463c71d09e142ad..58bc0c86b4d9e768404a8af1b5dea286e49cf653 100644 (file)
@@ -327,6 +327,11 @@ static bool bm_edge_test_cb(BMEdge *e, void *bm_v)
 
 static bool bm_edge_test_rail_cb(BMEdge *e, void *UNUSED(bm_v))
 {
+       /* normally operators dont check for hidden state
+        * but alternative would be to pass slot of rail edges */
+       if (BM_elem_flag_test(e, BM_ELEM_HIDDEN)) {
+               return false;
+       }
        return BM_edge_is_wire(e) || BM_edge_is_boundary(e);
 }