diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 07:45:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-06 07:45:45 +0300 |
commit | 5ed9dc68529f44c935bf9f774c57974b36e7e2ff (patch) | |
tree | ef2dd487e5bbdac80d8112c1730989044a11a492 /source | |
parent | 1f22ef34bbb13e17dd5e4f4c573bdcccc146fb3a (diff) |
Fix ruler not setting line width
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_gizmo_ruler.c | 1 | ||||
-rw-r--r-- | source/blender/editors/space_view3d/view3d_ruler.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c index d7a605eca5e..ec36f97ebd1 100644 --- a/source/blender/editors/space_view3d/view3d_gizmo_ruler.c +++ b/source/blender/editors/space_view3d/view3d_gizmo_ruler.c @@ -520,6 +520,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz) /* anti-aliased lines for more consistent appearance */ GPU_line_smooth(true); + GPU_line_width(1.0f); BLF_enable(blf_mono_font, BLF_ROTATION); BLF_size(blf_mono_font, 14 * U.pixelsize, U.dpi); diff --git a/source/blender/editors/space_view3d/view3d_ruler.c b/source/blender/editors/space_view3d/view3d_ruler.c index b31faa73c63..ea3896d1f30 100644 --- a/source/blender/editors/space_view3d/view3d_ruler.c +++ b/source/blender/editors/space_view3d/view3d_ruler.c @@ -433,6 +433,7 @@ static void ruler_info_draw_pixel(const struct bContext *C, ARegion *ar, void *a /* anti-aliased lines for more consistent appearance */ GPU_line_smooth(true); + GPU_line_width(1.0f); BLF_enable(blf_mono_font, BLF_ROTATION); BLF_size(blf_mono_font, 14 * U.pixelsize, U.dpi); |