dont display image sequences outside the frame range in the 3D viewport.
[blender.git] / source / blender / editors / mesh / editmesh_tools.c
index 8c77e8bec65e4473c62ada1660472e11f80a5516..7191284bc5bd723ce00da8f30d0abc9887d6a2f4 100644 (file)
@@ -2892,11 +2892,9 @@ static int mesh_separate_material(Main *bmain, Scene *scene, Base *editbase, wmO
 static int mesh_separate_loose(Main *bmain, Scene *scene, Base *editbase, wmOperator *wmop)
 {
        int i;
-       BMVert *v;
        BMEdge *e;
        BMVert *v_seed;
        BMWalker walker;
-       BMIter iter;
        int result = FALSE;
        Object *obedit = editbase->object;
        BMEditMesh *em = BMEdit_FromObject(obedit);
@@ -2913,11 +2911,7 @@ static int mesh_separate_loose(Main *bmain, Scene *scene, Base *editbase, wmOper
         * original mesh.*/
        for (i = 0; i < max_iter; i++) {
                /* Get a seed vertex to start the walk */
-               v_seed = NULL;
-               BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
-                       v_seed = v;
-                       break;
-               }
+               v_seed = BM_iter_at_index(bm, BM_VERTS_OF_MESH, NULL, 0);
 
                /* No vertices available, can't do anything */
                if (v_seed == NULL) {