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:
authorJulian Eisel <julian@blender.org>2020-06-19 20:55:17 +0300
committerJulian Eisel <julian@blender.org>2020-06-19 21:14:04 +0300
commit0ded6f55259bbfcaf48d521b0fcefa082179b349 (patch)
tree40c48e6e55d95f2388bf4b94f2671b36158752e6 /source/blender/windowmanager/intern/wm_window.c
parent254f164b27a416177e3bf47bd81498a2da929e43 (diff)
Fix: Crash when closing window while Outliner shows screens
Steps to reproduce were: * From factory settings, change Outliner Display Mode to "Blender File" * Open "Screens" item, make sure all listed screens are visible * Open Preference window, close it * Mouse hover the outliner -> crash Fix is to force an Outliner tree rebuild when closing screens.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 1ba22652157..e1b2285313c 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -463,6 +463,7 @@ void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
BLI_assert(BKE_workspace_layout_screen_get(layout) == screen);
BKE_workspace_layout_remove(bmain, workspace, layout);
+ WM_event_add_notifier(C, NC_SCREEN | ND_LAYOUTDELETE, NULL);
}
}