py/bmesh api - add support for single item buffers (odd feature but used quite a...
[blender.git] / source / blender / bmesh / operators / bmo_removedoubles.c
index 06d11c7b19d28c64e23642887c649f0775b83c76..7fb78d2d1607f6577b0f15778bf72d6d2f408f5d 100644 (file)
@@ -263,7 +263,7 @@ void bmo_pointmerge_facedata_exec(BMesh *bm, BMOperator *op)
        float fac;
        int i, tot;
 
-       snapv = BMO_iter_new(&siter, op->slots_in, "snapv", BM_VERT);
+       snapv = BMO_slot_buffer_get_single(BMO_slot_get(op->slots_in, "snapv"));
        tot = BM_vert_face_count(snapv);
 
        if (!tot)