diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:54:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:54:33 +0400 |
commit | 5c4f96af2c9fc5afc676cf132e8171a66a973d1b (patch) | |
tree | 3085a2024f8bd07ea2b14a71c6003aaec24c3179 /source/blender/editors/mask | |
parent | 62db610220867bb2b68a338b5fb8a2893f45fa80 (diff) |
code cleanup: use 'const float[2]' where possible.
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 2 | ||||
-rw-r--r-- | source/blender/editors/mask/mask_select.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index 89881ad36e1..98fac035c16 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -123,7 +123,7 @@ static void draw_spline_parents(MaskLayer *UNUSED(masklay), MaskSpline *spline) } #endif -static void mask_point_undistort_pos(SpaceClip *sc, float r_co[2], float co[2]) +static void mask_point_undistort_pos(SpaceClip *sc, float r_co[2], const float co[2]) { BKE_mask_coord_to_movieclip(sc->clip, &sc->user, r_co, co); ED_clip_point_undistorted_pos(sc, r_co, r_co); diff --git a/source/blender/editors/mask/mask_select.c b/source/blender/editors/mask/mask_select.c index 7de6f66f2ef..997f170c9f9 100644 --- a/source/blender/editors/mask/mask_select.c +++ b/source/blender/editors/mask/mask_select.c @@ -590,7 +590,7 @@ void MASK_OT_select_lasso(wmOperatorType *ot) /********************** circle select operator *********************/ -static int mask_spline_point_inside_ellipse(BezTriple *bezt, float offset[2], float ellipse[2]) +static int mask_spline_point_inside_ellipse(BezTriple *bezt, const float offset[2], const float ellipse[2]) { /* normalized ellipse: ell[0] = scaleX, ell[1] = scaleY */ float x, y; |