Fix T79482: Triangulate quads with 'Beauty' can make zero area faces

This commit is contained in:
2020-08-03 21:04:08 +10:00
parent 14b77b37cb
commit 3f94f47113
3 changed files with 13 additions and 4 deletions

View File

@@ -39,7 +39,10 @@ void bmo_beautify_fill_exec(BMesh *bm, BMOperator *op)
BMFace *f;
BMEdge *e;
const bool use_restrict_tag = BMO_slot_bool_get(op->slots_in, "use_restrict_tag");
const short flag = (use_restrict_tag ? VERT_RESTRICT_TAG : 0);
const short flag =
((use_restrict_tag ? VERT_RESTRICT_TAG : 0) |
/* Enable to avoid iterative edge rotation to cause the direction of faces to flip. */
EDGE_RESTRICT_DEGENERATE);
const short method = (short)BMO_slot_int_get(op->slots_in, "method");
BMEdge **edge_array;