diff options
author | Joshua Leung <aligorith@gmail.com> | 2017-08-03 04:45:26 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2017-08-11 15:05:56 +0300 |
commit | 572745cc8934686d2b1760bc29dd51ac21fadbfe (patch) | |
tree | ced1de26380cc649b9a0218194c2977f6c298623 /source/blender/editors/space_graph/graph_draw.c | |
parent | 00d10977c88125016285a985fa3362d6bea23e4b (diff) |
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
Diffstat (limited to 'source/blender/editors/space_graph/graph_draw.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |