Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/space_api/spacetypes.c')
-rw-r--r--source/blender/editors/space_api/spacetypes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index 01f0d1ae54f..ac6e3123e4e 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -120,7 +120,7 @@ void ED_spacetypes_init(void)
ED_operatortypes_io();
ED_operatortypes_view2d();
- ED_button_operatortypes();
+ ED_operatortypes_ui();
/* register operators */
spacetypes = BKE_spacetypes_list();
@@ -188,6 +188,7 @@ void ED_spacetypes_keymap(wmKeyConfig *keyconf)
ED_keymap_marker(keyconf);
ED_keymap_view2d(keyconf);
+ ED_keymap_ui(keyconf);
spacetypes = BKE_spacetypes_list();
for (stype = spacetypes->first; stype; stype = stype->next) {
@@ -249,8 +250,10 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type)
RegionDrawCB *rdc;
for (rdc = ar->type->drawcalls.first; rdc; rdc = rdc->next) {
- if (rdc->type == type)
+ if (rdc->type == type) {
+ UI_reinit_gl_state();
rdc->draw(C, ar, rdc->customdata);
+ }
}
}