Fix eternal loop in spin tool merge first/last
authorCampbell Barton <ideasman42@gmail.com>
Fri, 4 Jan 2019 05:08:42 +0000 (16:08 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 4 Jan 2019 06:07:06 +0000 (17:07 +1100)
source/blender/bmesh/operators/bmo_dupe.c

index 77019e139697b66e046d49a4a332f21205829503..7f13731dc022e833b43977fe876963fdaa48edd6 100644 (file)
@@ -573,11 +573,10 @@ void bmo_spin_exec(BMesh *bm, BMOperator *op)
                                                        BM_face_kill(bm, f_src);
                                                        elem_array_len--;
                                                        elem_array[i] = elem_array[elem_array_len];
+                                                       continue;
                                                }
                                        }
-                                       else {
-                                               i++;
-                                       }
+                                       i++;
                                }
                                slot_geom_out->len = elem_array_len;
                        }