diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-02-23 22:33:48 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-02-23 22:33:48 +0300 |
commit | 82b3b1a3c616abb9c56d1e59366ea2a35fd1b7f6 (patch) | |
tree | e31f39512cf8aecf51e9f2af62bdca5cf2a5bb14 /source/blender/editors/interface/view2d.c | |
parent | 5cc0bfa73a7257f3fa44d6894522aad3d81cdeb2 (diff) |
Revert "Glyph cache is cleared by UI_view2d_zoom_cache_reset, when zooming V2D, but is required to calculate text height in UI_view2d_text_cache_draw"
Accidentaly committed unwanted changes.
This reverts commit 6bcdcc96c2548e0ee5e18acc37915aedee6329e0.
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index bb49f024bc3..6ac8d83da92 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -2572,8 +2572,6 @@ void UI_view2d_text_cache_draw(ARegion *ar) /* investigate using BLF_ascender() */ const int font_id = BLF_default(); - - BLF_set_default(); const float default_height = g_v2d_strings ? BLF_height(font_id, "28", 3) : 0.0f; wmOrtho2_region_pixelspace(ar); |