[Bf-blender-cvs] [8695adddb48] greasepencil-object: GP: More control points more transparent

Antonioya noreply at git.blender.org
Sat Dec 15 12:19:52 CET 2018


Commit: 8695adddb48d19c7135d87e260f031aba914961b
Author: Antonioya
Date:   Sat Dec 15 12:02:40 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB8695adddb48d19c7135d87e260f031aba914961b

GP: More control points more transparent

This helps to see the extremes of the stroke.

===================================================================

M	source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c

===================================================================

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..a098fb74bc8 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -406,7 +406,7 @@ GPUBatch *DRW_gpencil_get_buffer_ctrlpoint_geom(bGPdata *gpd)
 		bGPDcontrolpoint *cp = &cps[i];
 		float color[4];
 		copy_v3_v3(color, cp->color);
-		color[3] = 0.8f;
+		color[3] = 0.5f;
 		GPU_vertbuf_attr_set(vbo, color_id, idx, color);
 
 		/* scale size */



More information about the Bf-blender-cvs mailing list