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:
authorAntonioya <blendergit@gmail.com>2018-12-17 18:25:58 +0300
committerAntonioya <blendergit@gmail.com>2018-12-17 18:26:25 +0300
commit4f220cd1cd2bba07959cad67cc1e4776531d23ea (patch)
tree00c0d61b703af839562dfb9415f0de21bb0634f3 /source/blender/draw
parent37d09827c607b33174277c1d7860d5290312bb0d (diff)
GP: Change Primitive manipulator to secondary Gizmo color
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index d1033a94ffa..0f37e8824ee 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -404,10 +404,8 @@ GPUBatch *DRW_gpencil_get_buffer_ctrlpoint_geom(bGPdata *gpd)
int idx = 0;
for (int i = 0; i < gpd->runtime.tot_cp_points; i++) {
bGPDcontrolpoint *cp = &cps[i];
- float color[4];
- copy_v3_v3(color, cp->color);
- color[3] = 0.8f;
- GPU_vertbuf_attr_set(vbo, color_id, idx, color);
+
+ GPU_vertbuf_attr_set(vbo, color_id, idx, cp->color);
/* scale size */
float size = cp->size * 0.8f;