diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-21 17:29:50 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-21 18:53:47 +0300 |
commit | f1f33606968eea1688b95631ad4183ce1803cb66 (patch) | |
tree | aa90b24863fe8daf5709140f8fe0f9b37f7559f3 | |
parent | 5200f6a2d7b56fa6d28c6f70d6c90642790d22c3 (diff) |
Fix T56472: maximizing editors does not preserve top/status bar hiding.
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 786a34db621..240336c0302 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1156,6 +1156,7 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s oldscreen = WM_window_get_active_screen(win); /* the one disappearing */ sc->state = SCREENNORMAL; + sc->flag = oldscreen->flag; /* find old area to restore from */ ScrArea *fullsa = NULL; @@ -1223,6 +1224,7 @@ ScrArea *ED_screen_state_toggle(bContext *C, wmWindow *win, ScrArea *sa, const s sc->state = state; sc->redraws_flag = oldscreen->redraws_flag; sc->temp = oldscreen->temp; + sc->flag = oldscreen->flag; /* timer */ sc->animtimer = oldscreen->animtimer; |