diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-02-08 09:43:53 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-02-11 02:42:55 +0300 |
commit | ae3646cd9f28ed034960c15c4f5b887505c9a330 (patch) | |
tree | 5d5b453f755f94247365ff3696b7d4873e3f4b41 /source/blender/editors/space_clip | |
parent | ef600e8ccfe7f596dd1365c411bb06bbb13de804 (diff) |
cleanup from recent commits
coding style, float literals
Converted some (expr / literal) to (expr * literal) where it does not impact readability.
Simplified a few function calls.
Diffstat (limited to 'source/blender/editors/space_clip')
-rw-r--r-- | source/blender/editors/space_clip/clip_graph_draw.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/editors/space_clip/clip_graph_draw.c b/source/blender/editors/space_clip/clip_graph_draw.c index b5e37f56ee4..b373358b49c 100644 --- a/source/blender/editors/space_clip/clip_graph_draw.c +++ b/source/blender/editors/space_clip/clip_graph_draw.c @@ -112,12 +112,7 @@ static void tracking_segment_knot_cb(void *userdata, MovieTrackingTrack *track, sel = (marker->flag & sel_flag) ? 1 : 0; if (sel == data->sel) { - if (sel) { - immUniformThemeColor(TH_HANDLE_VERTEX_SELECT); - } - else { - immUniformThemeColor(TH_HANDLE_VERTEX); - } + immUniformThemeColor(sel ? TH_HANDLE_VERTEX_SELECT : TH_HANDLE_VERTEX); glPushMatrix(); glTranslatef(scene_framenr, val, 0.0f); |