diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-09-20 13:40:58 +0400 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-09-20 13:40:58 +0400 |
commit | d24e5c05e051ce39f1852ec418fb4e7daf556a9e (patch) | |
tree | eea8fc15956793115c9a91e341e8da39cd48fc4e /source/blender/editors/mesh/editmesh_tools.c | |
parent | 7f76c2eab1e4e7accc499f3163f8c2c923f70cde (diff) |
Fix for [#21976] edges disappear when using loop cut on geometry with hidden parts
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c index 5d6d9e314f2..eadf0ca120f 100644 --- a/source/blender/editors/mesh/editmesh_tools.c +++ b/source/blender/editors/mesh/editmesh_tools.c @@ -2941,6 +2941,13 @@ void esubdivideflag(Object *obedit, EditMesh *em, int flag, float smooth, float } } + //third pass: unhide edges that have both verts visible + //(these were missed if all faces were hidden, bug #21976) + for(eed=em->edges.first; eed; eed=eed->next){ + if(eed->v1->h == 0 && eed->v2->h == 0) + eed->h &= ~1; + } + // Free the ghash and call MEM_freeN on all the value entries to return // that memory BLI_ghash_free(gh, NULL, (GHashValFreeFP)MEM_freeN); |