diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-04-08 13:51:13 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-04-08 13:51:13 +0300 |
commit | 3a2d7ef54150e19ce3e7b3d8126c46b8e9005d3e (patch) | |
tree | b48e3b13bf6761fd164dcc4a88362c4e9089bba2 /source/blender/editors/interface/interface.c | |
parent | aee5a80a83e48afc3b0b978b5087f8c05af6f54e (diff) | |
parent | 0b5ebb3265b155658d441135e152f32ba11c001d (diff) |
Merge branch 'blender2.8' into topbar
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index a6d965d52e4..bb33956a01d 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -64,6 +64,7 @@ #include "BLT_translation.h" #include "UI_interface.h" +#include "UI_interface_icons.h" #include "IMB_imbuf.h" @@ -1426,6 +1427,10 @@ void UI_block_draw(const bContext *C, uiBlock *block) else if (block->panel) ui_draw_aligned_panel(&style, block, &rect, UI_panel_category_is_visible(ar)); + BLF_batch_draw_begin(); + UI_icon_draw_cache_begin(); + UI_widgetbase_draw_cache_begin(); + /* widgets */ for (but = block->buttons.first; but; but = but->next) { if (!(but->flag & (UI_HIDDEN | UI_SCROLLED))) { @@ -1437,6 +1442,10 @@ void UI_block_draw(const bContext *C, uiBlock *block) ui_draw_but(C, ar, &style, but, &rect); } } + + UI_widgetbase_draw_cache_end(); + UI_icon_draw_cache_end(); + BLF_batch_draw_end(); /* restore matrix */ gpuPopProjectionMatrix(); |