Fix ruler not setting line width
This commit is contained in:
parent
1f22ef34bb
commit
5ed9dc6852
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue