diff options
author | Julian Eisel <julian@blender.org> | 2020-11-02 20:32:12 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-11-02 20:35:13 +0300 |
commit | ef4aa42ea4ffa1bf7f5ad7f8e7f7b6acf9e3c3e6 (patch) | |
tree | 06b0827e294d12bde6f97136c6d34f9dc0addd17 /source/blender/blenloader | |
parent | cf7343a35559c7fec2047c3e5d7ef4dd7c1e64a5 (diff) |
UI: Enable writing global area data (top-bar, status-bar) to .blend's
There should not be much user visible here (other than T73668 being addressed).
I added the writing code already for the initial implementation of workspaces,
but we decided to keep it disabled until the top-bar design is more clear. It
was never planned to keep this disabled for so long.
Fixes T73668.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 95cfeef4243..e4995c991e1 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1639,12 +1639,6 @@ static void write_windowmanager(BlendWriter *writer, wmWindowManager *wm, const write_wm_xr_data(writer, &wm->xr); LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { -#ifndef WITH_GLOBAL_AREA_WRITING - /* Don't write global areas yet, while we make changes to them. */ - ScrAreaMap global_areas = win->global_areas; - memset(&win->global_areas, 0, sizeof(win->global_areas)); -#endif - /* update deprecated screen member (for so loading in 2.7x uses the correct screen) */ win->screen = BKE_workspace_active_screen_get(win->workspace_hook); @@ -1652,11 +1646,7 @@ static void write_windowmanager(BlendWriter *writer, wmWindowManager *wm, const BLO_write_struct(writer, WorkSpaceInstanceHook, win->workspace_hook); BLO_write_struct(writer, Stereo3dFormat, win->stereo3d_format); -#ifdef WITH_GLOBAL_AREA_WRITING BKE_screen_area_map_blend_write(writer, &win->global_areas); -#else - win->global_areas = global_areas; -#endif /* data is written, clear deprecated data again */ win->screen = NULL; |