diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-09-14 01:10:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-09-14 01:12:53 +0300 |
commit | 0547a7753643f45861306542857d97215ecb2c4f (patch) | |
tree | 1faad834721f7f13d4a0756bd80607963386fccd /source/blender/editors/uvedit | |
parent | d30ec73d763ed01795100ec5d3a0ef9dc8521f7b (diff) |
Cleanup: use const args, variables
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_buttons.c | 2 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_ops.c | 2 | ||||
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/editors/uvedit/uvedit_buttons.c b/source/blender/editors/uvedit/uvedit_buttons.c index 2abbe67237e..44bffc76859 100644 --- a/source/blender/editors/uvedit/uvedit_buttons.c +++ b/source/blender/editors/uvedit/uvedit_buttons.c @@ -98,7 +98,7 @@ static int uvedit_center( } static void uvedit_translate( - Scene *scene, Object **objects, uint objects_len, Image *ima, float delta[2]) + Scene *scene, Object **objects, uint objects_len, Image *ima, const float delta[2]) { BMFace *f; BMLoop *l; diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c index cd7e5f9ba09..57e2a84d248 100644 --- a/source/blender/editors/uvedit/uvedit_ops.c +++ b/source/blender/editors/uvedit/uvedit_ops.c @@ -4458,7 +4458,7 @@ static int uv_select_overlap(bContext *C, const bool extend) overlap_data[data_index].face_index = face_index; /* BVH needs 3D, overlap data uses 2D. */ - float tri[3][3] = { + const float tri[3][3] = { {UNPACK2(uv_verts[indices[t][0]]), 0.0f}, {UNPACK2(uv_verts[indices[t][1]]), 0.0f}, {UNPACK2(uv_verts[indices[t][2]]), 0.0f}, diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index 2d8f40ea5af..1db038bef94 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -1258,7 +1258,7 @@ static void uv_map_rotation_matrix_ex(float result[4][4], float upangledeg, float sideangledeg, float radius, - float offset[4]) + const float offset[4]) { float rotup[4][4], rotside[4][4], viewmatrix[4][4], rotobj[4][4]; float sideangle = 0.0f, upangle = 0.0f; @@ -2035,9 +2035,9 @@ void UV_OT_reset(wmOperatorType *ot) /****************** Sphere Project operator ***************/ static void uv_sphere_project(float target[2], - float source[3], - float center[3], - float rotmat[4][4]) + const float source[3], + const float center[3], + const float rotmat[4][4]) { float pv[3]; @@ -2162,9 +2162,9 @@ void UV_OT_sphere_project(wmOperatorType *ot) /***************** Cylinder Project operator **************/ static void uv_cylinder_project(float target[2], - float source[3], - float center[3], - float rotmat[4][4]) + const float source[3], + const float center[3], + const float rotmat[4][4]) { float pv[3]; |