diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-13 20:06:18 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-13 20:06:18 +0400 |
commit | bdc41ca756ab48f0a83b4fd97560969521b4b433 (patch) | |
tree | 6bea4875ad4094520d8db38e45e946207d9bde10 /source/blender/editors/mask/mask_add.c | |
parent | bcee57e74e587260f2a7050b3b8a1894fe592466 (diff) |
Code cleanup: Move output arguments to the end of the list
Diffstat (limited to 'source/blender/editors/mask/mask_add.c')
-rw-r--r-- | source/blender/editors/mask/mask_add.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c index cd6e93771c0..cb47adbe73e 100644 --- a/source/blender/editors/mask/mask_add.c +++ b/source/blender/editors/mask/mask_add.c @@ -57,12 +57,13 @@ bool ED_mask_find_nearest_diff_point(const bContext *C, struct Mask *mask, const float normal_co[2], int threshold, bool feather, + float tangent[2], + const bool use_deform, + const bool use_project, MaskLayer **masklay_r, MaskSpline **spline_r, MaskSplinePoint **point_r, - float *u_r, float tangent[2], - const bool use_deform, - const bool use_project, + float *u_r, float *score_r) { ScrArea *sa = CTX_wm_area(C); @@ -344,7 +345,9 @@ static bool add_vertex_subdivide(const bContext *C, Mask *mask, const float co[2 float tangent[2]; float u; - if (ED_mask_find_nearest_diff_point(C, mask, co, threshold, false, &masklay, &spline, &point, &u, tangent, true, true, NULL)) { + if (ED_mask_find_nearest_diff_point(C, mask, co, threshold, false, tangent, true, true, + &masklay, &spline, &point, &u, NULL)) + { MaskSplinePoint *new_point; int point_index = point - spline->points; @@ -629,7 +632,9 @@ static int add_feather_vertex_exec(bContext *C, wmOperator *op) if (point) return OPERATOR_FINISHED; - if (ED_mask_find_nearest_diff_point(C, mask, co, threshold, true, &masklay, &spline, &point, &u, NULL, true, true, NULL)) { + if (ED_mask_find_nearest_diff_point(C, mask, co, threshold, true, NULL, true, true, + &masklay, &spline, &point, &u, NULL)) + { Scene *scene = CTX_data_scene(C); float w = BKE_mask_point_weight(spline, point, u); float weight_scalar = BKE_mask_point_weight_scalar(spline, point, u); |