Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-27 01:50:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-27 02:56:54 +0400
commitb6e967be636d0e1bae842b2c52c76fd867a4784a (patch)
treefb1d7430f6bab8b1375019e8b585c850214e5992 /source/blender/editors/space_clip/clip_graph_draw.c
parent7ca74fc1c008355b84c08bcadb56ea6acabce2f3 (diff)
Code cleanup: const args and arrays
Diffstat (limited to 'source/blender/editors/space_clip/clip_graph_draw.c')
-rw-r--r--source/blender/editors/space_clip/clip_graph_draw.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_draw.c b/source/blender/editors/space_clip/clip_graph_draw.c
index 11447c99605..4f4949def19 100644
--- a/source/blender/editors/space_clip/clip_graph_draw.c
+++ b/source/blender/editors/space_clip/clip_graph_draw.c
@@ -96,8 +96,10 @@ static void tracking_segment_point_cb(void *UNUSED(userdata), MovieTrackingTrack
static void tracking_segment_start_cb(void *userdata, MovieTrackingTrack *track, int coord)
{
- static float colors[2][3] = {{1.0f, 0.0f, 0.0f},
- {0.0f, 1.0f, 0.0f}};
+ const float colors[2][3] = {
+ {1.0f, 0.0f, 0.0f},
+ {0.0f, 1.0f, 0.0f},
+ };
float col[4];
copy_v3_v3(col, colors[coord]);