BLI_listbase: match arg order with BLI_qsort_r
[blender.git] / source / blender / editors / mesh / editmesh_knife.c
index b7e11287d3647da0891335772bda21a27f6ef036..8775160de76ecf04695e5d94af7994450a111e8a 100644 (file)
@@ -2828,7 +2828,7 @@ static void knife_make_cuts(KnifeTool_OpData *kcd)
        for (lst = BLI_smallhash_iternew(ehash, &hiter, (uintptr_t *)&e); lst;
             lst = BLI_smallhash_iternext(&hiter, (uintptr_t *)&e))
        {
-               BLI_listbase_sort_r(lst, e->v1->co, sort_verts_by_dist_cb);
+               BLI_listbase_sort_r(lst, sort_verts_by_dist_cb, e->v1->co);
 
                for (ref = lst->first; ref; ref = ref->next) {
                        kfv = ref->ref;