diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-19 03:40:04 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-19 04:09:53 +0300 |
commit | b62e1146e13cf94e14d7ef8003b8a4cde87d0437 (patch) | |
tree | 077a3ceaea67da205595644729ef577ab1c70af0 /source/blender/editors/space_view3d/view3d_gizmo_ruler.c | |
parent | 014e569258519cbba56fce9a6a29b208ccdbb1f2 (diff) |
UI: add view aligned gizmo color
Was hard coded to white making white backgrounds impractical.
D7162 by @billreynish with edits.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_gizmo_ruler.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_ruler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c index 83539900f36..c202cc297f4 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c @@ -864,7 +864,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz) uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - immUniformColor4fv(color_act); + immUniformThemeColor3(TH_GIZMO_VIEW_ALIGN); imm_draw_circle_wire_2d(pos, co_ss_snap[0], co_ss_snap[1], size * U.pixelsize, 32); |