diff options
author | Hans Goudey <h.goudey@me.com> | 2020-07-17 22:18:54 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-07-17 22:18:54 +0300 |
commit | 69d14c0ddbfb6ccbc0e321169967c46389bfdd32 (patch) | |
tree | 5bea71f0f16d9ace9afbbdae11164902a4a880be /source/blender/windowmanager/intern/wm_draw.c | |
parent | 8b0df381d95312a3af3c6ec05e9b4b7ed81727e2 (diff) |
Fix T78959: Show current frame indicator when interface is locked
When the playhead drawing moved to an overlay, a check was added to keep
it from drawing with a locked interface. This is necessary for some overlays,
but not this one, so this removes the check, making it the responsibility of
the editor.
A context function is added to make that check easier in the future.
Differential Revision: https://developer.blender.org/D8313
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 4cc30d65fdb..75580824d9c 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -138,12 +138,6 @@ static void wm_region_draw_overlay(bContext *C, ScrArea *area, ARegion *region) wmWindowManager *wm = CTX_wm_manager(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); UI_SetTheme(area->spacetype, region->regiontype); region->type->draw_overlay(C, region); |