Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_draw.c
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
| /** \name Post Draw Region on display handlers | /** \name Post Draw Region on display handlers | ||||
| * \{ */ | * \{ */ | ||||
| static void wm_region_draw_overlay(bContext *C, ScrArea *area, ARegion *region) | static void wm_region_draw_overlay(bContext *C, ScrArea *area, ARegion *region) | ||||
| { | { | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| wmWindow *win = CTX_wm_window(C); | wmWindow *win = CTX_wm_window(C); | ||||
| /* Don't draw overlay with locked interface. Drawing could access scene data that another thread | |||||
| * may be modifying. */ | |||||
| if (wm->is_interface_locked) { | |||||
| return; | |||||
| } | |||||
| wmViewport(®ion->winrct); | wmViewport(®ion->winrct); | ||||
| UI_SetTheme(area->spacetype, region->regiontype); | UI_SetTheme(area->spacetype, region->regiontype); | ||||
| region->type->draw_overlay(C, region); | region->type->draw_overlay(C, region); | ||||
| wmWindowViewport(win); | wmWindowViewport(win); | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| ▲ Show 20 Lines • Show All 958 Lines • Show Last 20 Lines | |||||