[Bf-blender-cvs] [572745cc893] blender2.8: GraphEdit Keyframe Drawing: Tweak styling of handles

Joshua Leung noreply at git.blender.org
Fri Aug 11 14:17:32 CEST 2017


Commit: 572745cc8934686d2b1760bc29dd51ac21fadbfe
Author: Joshua Leung
Date:   Thu Aug 3 13:45:26 2017 +1200
Branches: blender2.8
https://developer.blender.org/rB572745cc8934686d2b1760bc29dd51ac21fadbfe

GraphEdit Keyframe Drawing: Tweak styling of handles

* Reduce interior fill opacity - These should *not* be shaded
* Adjust thickness of lines to match the old chunkiness more

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

M	source/blender/editors/space_graph/graph_draw.c

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

diff --git a/source/blender/editors/space_graph/graph_draw.c b/source/blender/editors/space_graph/graph_draw.c
index 01dc272ead4..b92c0a67a14 100644
--- a/source/blender/editors/space_graph/graph_draw.c
+++ b/source/blender/editors/space_graph/graph_draw.c
@@ -221,7 +221,7 @@ static void draw_fcurve_selected_handle_vertices(FCurve *fcu, View2D *v2d, bool
 	float hcolor[3];
 	UI_GetThemeColor3fv(sel ? TH_HANDLE_VERTEX_SELECT : TH_HANDLE_VERTEX, hcolor);
 	immUniform4f("outlineColor", hcolor[0], hcolor[1], hcolor[2], 1.0f);
-	immUniformColor3fvAlpha(hcolor, 0.4f);
+	immUniformColor3fvAlpha(hcolor, 0.01f); /* almost invisible - only keep for smoothness */
 
 	immBeginAtMost(GWN_PRIM_POINTS, fcu->totvert * 2);
 
@@ -260,7 +260,7 @@ static void draw_fcurve_handle_vertices(FCurve *fcu, View2D *v2d, bool sel_handl
 
 	/* set handle size */
 	immUniform1f("size", (1.4f * UI_GetThemeValuef(TH_HANDLE_VERTEX_SIZE)) * U.pixelsize);
-	immUniform1f("outlineWidth", 1.0f * U.pixelsize);
+	immUniform1f("outlineWidth", 1.5f * U.pixelsize);
 
 	draw_fcurve_selected_handle_vertices(fcu, v2d, false, sel_handle_only, pos);
 	draw_fcurve_selected_handle_vertices(fcu, v2d, true, sel_handle_only, pos);




More information about the Bf-blender-cvs mailing list