diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2018-04-09 14:11:24 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2018-04-09 14:19:19 +0300 |
commit | 867f96c23419269452488ecf80f908c57a84f935 (patch) | |
tree | a27f41a950c90d578b964284d3de61dd1da498ec /source/blender/editors/screen/workspace_edit.c | |
parent | 09ee3eb173b3889d4f5309e450df290a8c0bbe76 (diff) |
Fix crash and invalid context when changing workspace
Caused by 1c24c04e6023f2d2a3.
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r-- | source/blender/editors/screen/workspace_edit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c index dee62f9c5dd..fbfb88ce6c1 100644 --- a/source/blender/editors/screen/workspace_edit.c +++ b/source/blender/editors/screen/workspace_edit.c @@ -193,7 +193,9 @@ bool ED_workspace_change( WM_window_set_active_layout(win, workspace_new, layout_new); WM_window_set_active_workspace(win, workspace_new); - /* update screen *after* changing workspace - which also causes the actual screen change */ + /* update screen *after* changing workspace - which also causes the + * actual screen change and updates context (including CTX_wm_workspace) */ + screen_change_update(C, win, screen_new); workspace_change_update(workspace_new, workspace_old, C, wm); BLI_assert(BKE_workspace_view_layer_get(workspace_new, CTX_data_scene(C)) != NULL); |