BLI_listbase: match arg order with BLI_qsort_r
[blender.git] / source / blender / editors / transform / transform_conversions.c
index 4da3fa8a959123c1c18a174503daf7a3d5a782b8..cd893a4cdbcf16d13124ebc39820c597a68a2a3d 100644 (file)
@@ -3188,7 +3188,7 @@ static void posttrans_gpd_clean(bGPdata *gpd)
                bGPDframe *gpf, *gpfn;
                bool is_double = false;
 
-               BLI_listbase_sort_r(&gpl->frames, &is_double, gpf_cmp_frame);
+               BLI_listbase_sort_r(&gpl->frames, gpf_cmp_frame, &is_double);
 
                if (is_double) {
                        for (gpf = gpl->frames.first; gpf; gpf = gpfn) {
@@ -3215,7 +3215,7 @@ static void posttrans_mask_clean(Mask *mask)
                MaskLayerShape *masklay_shape, *masklay_shape_next;
                bool is_double = false;
 
-               BLI_listbase_sort_r(&masklay->splines_shapes, &is_double, masklay_shape_cmp_frame);
+               BLI_listbase_sort_r(&masklay->splines_shapes, masklay_shape_cmp_frame, &is_double);
 
                if (is_double) {
                        for (masklay_shape = masklay->splines_shapes.first; masklay_shape; masklay_shape = masklay_shape_next) {