Fix T84780: Corrupt screen layout when loading file with area full-screen
This could happen with files saved beforeef4aa42ea4
, so before global areas were written to .blend files. We would just always add the top- and status-bar, even though the screen wasn't supposed to have them. I'm not entirely sure what caused the further issues observed there, most code should probably handle the case fine still. But apparently something didn't. Steps to reproduce were: * Open Blender from beforeef4aa42ea4
(e.g 2.91 release) * In 3D View, View > Area > Toggle Fullscreen Area * Save the file * Open the saved file (can be in newer version too) The fullscreen is corrupt now, especially noticable after duplicating the workspace.
This commit is contained in:
@@ -871,6 +871,11 @@ static void screen_global_area_refresh(wmWindow *win,
|
||||
const short height_min,
|
||||
const short height_max)
|
||||
{
|
||||
/* Full-screens shouldn't have global areas. Don't touch them. */
|
||||
if (screen->state == SCREENFULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
ScrArea *area = NULL;
|
||||
LISTBASE_FOREACH (ScrArea *, area_iter, &win->global_areas.areabase) {
|
||||
if (area_iter->spacetype == space_type) {
|
||||
|
Reference in New Issue
Block a user