From 0547a7753643f45861306542857d97215ecb2c4f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 14 Sep 2019 08:10:50 +1000 Subject: Cleanup: use const args, variables --- source/blender/render/intern/source/bake_api.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/render') diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c index 4e5a83555eb..e8c349f6c85 100644 --- a/source/blender/render/intern/source/bake_api.c +++ b/source/blender/render/intern/source/bake_api.c @@ -172,8 +172,8 @@ void RE_bake_margin(ImBuf *ibuf, char *mask, const int margin) */ static void calc_point_from_barycentric_cage(TriTessFace *triangles_low, TriTessFace *triangles_cage, - float mat_low[4][4], - float mat_cage[4][4], + const float mat_low[4][4], + const float mat_cage[4][4], int primitive_id, float u, float v, @@ -214,8 +214,8 @@ static void calc_point_from_barycentric_cage(TriTessFace *triangles_low, * The returned coordinate is extruded along the normal by cage_extrusion */ static void calc_point_from_barycentric_extrusion(TriTessFace *triangles, - float mat[4][4], - float imat[4][4], + const float mat[4][4], + const float imat[4][4], int primitive_id, float u, float v, @@ -316,7 +316,7 @@ static bool cast_ray_highpoly(BVHTreeFromMesh *treeData, TriTessFace *triangles[], BakePixel *pixel_array_low, BakePixel *pixel_array, - float mat_low[4][4], + const float mat_low[4][4], BakeHighPolyData *highpoly, const float co[3], const float dir[3], -- cgit v1.2.3