Fix for dissolve faces iterating over verts while removing
This commit is contained in:
parent
a5d5f7fe16
commit
0ea7302349
Notes:
blender-bot
2023-02-14 10:23:42 +01:00
Referenced by issue #40906, Make Local button on the scene selection drop-down does not work
|
@ -211,9 +211,9 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op)
|
|||
|
||||
if (use_verts) {
|
||||
BMIter viter;
|
||||
BMVert *v;
|
||||
BMVert *v, *v_next;
|
||||
|
||||
BM_ITER_MESH (v, &viter, bm, BM_VERTS_OF_MESH) {
|
||||
BM_ITER_MESH_MUTABLE (v, v_next, &viter, bm, BM_VERTS_OF_MESH) {
|
||||
if (BMO_elem_flag_test(bm, v, VERT_MARK)) {
|
||||
if (BM_vert_edge_count(v) == 2) {
|
||||
BM_vert_collapse_edge(bm, v->e, v, true);
|
||||
|
|
Loading…
Reference in New Issue