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.
This commit is contained in:
Julian Eisel 2018-06-08 15:57:01 +02:00
parent 4df45e18dc
commit fc85096dc8
Notes: blender-bot 2023-02-14 05:46:34 +01:00
Referenced by issue #55387, Render animation fullscreen from top menu crashes Blender
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}