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>2019-01-24 23:10:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-24 23:12:13 +0300
commita4fe338dd8c6822d27b8858bae5fa9a54972719c (patch)
tree9a6b671702a7cf41e98efef72e78c7cc54974111 /source/blender/draw/intern/draw_cache.c
parentb1f3a86d999b6742d783de5a11d7de0c54cf5891 (diff)
Cleanup: add missing braces to draw manager
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r--source/blender/draw/intern/draw_cache.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 45fca44772f..2bc73700462 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -3623,10 +3623,7 @@ GPUBatch *DRW_cache_cursor_get(bool crosshair_lines)
float x = f10 * cosf(angle);
float y = f10 * sinf(angle);
- if (i % 2 == 0)
- GPU_vertbuf_attr_set(vbo, attr_id.color, v, red);
- else
- GPU_vertbuf_attr_set(vbo, attr_id.color, v, white);
+ GPU_vertbuf_attr_set(vbo, attr_id.color, v, (i % 2 == 0) ? red : white);
GPU_vertbuf_attr_set(vbo, attr_id.pos, v, (const float[2]){x, y});
GPU_indexbuf_add_generic_vert(&elb, v++);