diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-07 15:56:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-07 15:56:13 +0300 |
commit | 48e089375ebe4aeb30d60e9d8ef6f467280cf07d (patch) | |
tree | af4675f9b8489fb49b68a9a9d977a098e645f640 /source/blender/editors/space_view3d/view3d_placement.c | |
parent | b134434224254d4ac3fc73d023f2f6d914746690 (diff) |
Cleanup: pass arrays const where possible
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_placement.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_placement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_placement.c b/source/blender/editors/space_view3d/view3d_placement.c index b79632f0a82..a828dbc2ee0 100644 --- a/source/blender/editors/space_view3d/view3d_placement.c +++ b/source/blender/editors/space_view3d/view3d_placement.c @@ -246,7 +246,7 @@ static bool idp_poject_surface_normal(SnapObjectContext *snap_context, /** \name Primitive Drawing (Cube, Cone, Cylinder...) * \{ */ -static void draw_line_loop(float coords[][3], int coords_len, const float color[4]) +static void draw_line_loop(const float coords[][3], int coords_len, const float color[4]) { GPUVertFormat *format = immVertexFormat(); uint pos = GPU_vertformat_attr_add(format, "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT); @@ -279,7 +279,7 @@ static void draw_line_loop(float coords[][3], int coords_len, const float color[ GPU_blend(false); } -static void draw_line_pairs(float coords_a[][3], +static void draw_line_pairs(const float coords_a[][3], float coords_b[][3], int coords_len, const float color[4]) |