Fix for [#21976] edges disappear when using loop cut on geometry with hidden parts

This commit is contained in:
2010-09-20 09:40:58 +00:00
parent 7f76c2eab1
commit d24e5c05e0

View File

@@ -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);