[Bf-blender-cvs] [17aad5ad974] blender2.8: UI: Perf: View3D: Batch view infos BLF calls together.
Clément Foucault
noreply at git.blender.org
Sun Apr 8 18:25:53 CEST 2018
Commit: 17aad5ad97472a745fd17dc0ff8ab304d2fa15d3
Author: Clément Foucault
Date: Sun Apr 8 16:58:36 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB17aad5ad97472a745fd17dc0ff8ab304d2fa15d3
UI: Perf: View3D: Batch view infos BLF calls together.
===================================================================
M source/blender/editors/space_view3d/view3d_draw.c
===================================================================
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)
More information about the Bf-blender-cvs
mailing list