diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 08:20:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-28 08:20:57 +0300 |
commit | 0c8a7069b5ce2970de5866f5543b0799e5c77ed0 (patch) | |
tree | efdf2c3996e213fb0458f814fdbe9f084eea3d13 /source | |
parent | 4de6a210c69fe254518ca8d6c860782c54f03749 (diff) |
Fix assert opening file selector
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 654a3cf05b9..00364489af7 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -544,7 +544,9 @@ static void wm_draw_window_offscreen(bContext *C, wmWindow *win, bool stereo) ED_area_update_region_sizes(wm, win, sa); if (sa->flag & AREA_FLAG_ACTIVE_TOOL_UPDATE) { - WM_toolsystem_update_from_context(C, CTX_wm_workspace(C), CTX_data_view_layer(C), sa); + if ((1 << sa->spacetype) & WM_TOOLSYSTEM_SPACE_MASK) { + WM_toolsystem_update_from_context(C, CTX_wm_workspace(C), CTX_data_view_layer(C), sa); + } sa->flag &= ~AREA_FLAG_ACTIVE_TOOL_UPDATE; } |