Fix T48926: Subdivide edge-ring crash

Also resolves: T34294
This commit is contained in:
Campbell Barton 2016-07-22 15:41:56 +10:00
parent 08e1bba10c
commit 192df299d9
Notes: blender-bot 2023-02-14 12:39:26 +01:00
Referenced by issue #48926, Subdivide Edge-Ring Crash
Referenced by issue #34294, Subdivide Smooth issue
1 changed files with 2 additions and 1 deletions

View File

@ -1099,7 +1099,8 @@ void bmo_subdivide_edgering_exec(BMesh *bm, BMOperator *op)
BMFace *f;
BM_ITER_ELEM (f, &fiter, e, BM_FACES_OF_EDGE) {
if (!BMO_face_flag_test(bm, f, FACE_OUT)) {
/* could support ngons, other areas would need updating too, see T48926. */
if ((f->len <= 4) && !BMO_face_flag_test(bm, f, FACE_OUT)) {
BMIter liter;
BMLoop *l;
bool ok = false;