Fix T68209: Crash opening pre 2.8 file with maximized area
Versioning for workspaces didn't update the map used to determine which
layout is active for a workspace in a specific window. Library code now
called the function to make a workspace active (even if it already was
active), which would also use this map to determine the active layout --
the wrong one.
Error in initial workspace integration, but only uncovered recently.
Likely through 0d8a8ce03b
.
This commit is contained in:
parent
5a1ab3e9ae
commit
fc2bb44e94
Notes:
blender-bot
2023-02-14 02:22:13 +01:00
Referenced by issue #68209, Blender bug open 2.79 files to 2.80
|
@ -256,7 +256,7 @@ static void do_version_workspaces_after_lib_link(Main *bmain)
|
|||
win->workspace_hook = BKE_workspace_instance_hook_create(bmain);
|
||||
|
||||
BKE_workspace_active_set(win->workspace_hook, workspace);
|
||||
BKE_workspace_active_layout_set(win->workspace_hook, layout);
|
||||
BKE_workspace_hook_layout_for_workspace_set(win->workspace_hook, workspace, layout);
|
||||
|
||||
/* Move scene and view layer to window. */
|
||||
Scene *scene = screen->scene;
|
||||
|
|
Loading…
Reference in New Issue