diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-27 01:50:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-27 02:56:54 +0400 |
commit | b6e967be636d0e1bae842b2c52c76fd867a4784a (patch) | |
tree | fb1d7430f6bab8b1375019e8b585c850214e5992 /source/blender/editors/space_node/node_draw.c | |
parent | 7ca74fc1c008355b84c08bcadb56ea6acabce2f3 (diff) |
Code cleanup: const args and arrays
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index e8dd65e7c64..b37e2ff445b 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -587,14 +587,14 @@ static void node_draw_mute_line(View2D *v2d, SpaceNode *snode, bNode *node) static void node_circle_draw(float x, float y, float size, const float col[4], int highlight) { /* 16 values of sin function */ - static float si[16] = { + static const float si[16] = { 0.00000000f, 0.39435585f, 0.72479278f, 0.93775213f, 0.99871650f, 0.89780453f, 0.65137248f, 0.29936312f, -0.10116832f, -0.48530196f, -0.79077573f, -0.96807711f, -0.98846832f, -0.84864425f, -0.57126821f, -0.20129852f }; /* 16 values of cos function */ - static float co[16] = { + static const float co[16] = { 1.00000000f, 0.91895781f, 0.68896691f, 0.34730525f, -0.05064916f, -0.44039415f, -0.75875812f, -0.95413925f, -0.99486932f, -0.87434661f, -0.61210598f, -0.25065253f, |