diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-08 17:58:36 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-08 19:31:50 +0300 |
commit | 17aad5ad97472a745fd17dc0ff8ab304d2fa15d3 (patch) | |
tree | b73c1de2ca914c1598d77b1ed011db13066bc797 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | ccbc14d995a4de2609125435ad108b6e17739e46 (diff) |
UI: Perf: View3D: Batch view infos BLF calls together.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 596bf28f6b7..f63bcb1571d 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1850,6 +1850,8 @@ void view3d_draw_region_info(const bContext *C, ARegion *ar, const int offset) view3d_draw_border(C, ar); view3d_draw_grease_pencil(C); + BLF_batch_draw_begin(); + if (U.uiflag & USER_SHOW_ROTVIEWICON) { draw_view_axis(rv3d, &rect); } @@ -1866,6 +1868,7 @@ void view3d_draw_region_info(const bContext *C, ARegion *ar, const int offset) Object *ob = OBACT(view_layer); draw_selected_name(scene, ob, &rect); } + #if 0 /* TODO */ if (grid_unit) { /* draw below the viewport name */ char numstr[32] = ""; @@ -1880,6 +1883,7 @@ void view3d_draw_region_info(const bContext *C, ARegion *ar, const int offset) numstr[0] ? numstr : grid_unit, sizeof(numstr)); } #endif + BLF_batch_draw_end(); } static void view3d_draw_view(const bContext *C, ARegion *ar) |