Fix crash dissolving overlapping faces

In rare cases disolving faces would crash, caused by iterator
variable reuse in b29a8a5dfe.
This commit is contained in:
Campbell Barton 2021-11-03 22:12:42 +11:00
parent b55bddde40
commit 42d0107ee5
1 changed files with 2 additions and 2 deletions

View File

@ -233,8 +233,8 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op)
* This could optionally do a partial merge, where some faces are joined. */
/* Prevent these faces from being removed. */
for (i = 0; i < faces_len; i++) {
BMO_face_flag_disable(bm, faces[i], FACE_ORIG);
for (int j = 0; j < faces_len; j++) {
BMO_face_flag_disable(bm, faces[j], FACE_ORIG);
}
}
}