Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-17 16:26:14 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-17 16:26:14 +0400
commit43748eca2d72af87fb7468b6ba9cbeeb57888137 (patch)
treecb8f7c9c050336c4d5942fd2de1dca140c78c3c0 /source/blender/bmesh
parentb73c821b5d24797f97a656636e9a47fb861b11c2 (diff)
ignore hidden edges for bmesh grid-fill.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r--source/blender/bmesh/operators/bmo_grid_fill.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/bmesh/operators/bmo_grid_fill.c b/source/blender/bmesh/operators/bmo_grid_fill.c
index 21325cf05b2..58bc0c86b4d 100644
--- a/source/blender/bmesh/operators/bmo_grid_fill.c
+++ b/source/blender/bmesh/operators/bmo_grid_fill.c
@@ -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);
}