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 <eiseljulian@gmail.com>2018-06-08 16:57:01 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-06-08 16:59:34 +0300
commitfc85096dc8e12e3c83621d153e13cab7bdf1860d (patch)
tree4f8ca4d1f37367bc7c917d374b305653eafdd5f6
parent4df45e18dc19fbf6ad6fd36e0f41723ec76d8c44 (diff)
Fix T55387: Render fullscreen from top menu crashes Blender
Would try to use data from global area for the newly created fullscreen area. This should not happen, so instead of a global area use first area from layout.
-rw-r--r--source/blender/editors/screen/screen_edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index ec2cb641bcd..ac4ab3461a3 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -1503,7 +1503,7 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s
/* use random area when we have no active one, e.g. when the
* mouse is outside of the window and we open a file browser */
- if (!sa) {
+ if (!sa || sa->global) {
sa = oldscreen->areabase.first;
}