Fix T56020: Crash while opening .blend file made with older version.
We need a NULL workspace check here, in some cases we get a SRTemp screen even though it's not tagged as temp...
This commit is contained in:
parent
4473427d81
commit
27567a6c76
Notes:
blender-bot
2023-02-14 09:24:53 +01:00
Referenced by issue #56020, Crash while opening .blend file made with older version
|
@ -112,6 +112,9 @@ static void do_version_workspaces_create_from_screens(Main *bmain)
|
|||
else {
|
||||
workspace = BKE_workspace_add(bmain, screen->id.name + 2);
|
||||
}
|
||||
if (workspace == NULL) {
|
||||
continue; /* Not much we can do.. */
|
||||
}
|
||||
BKE_workspace_layout_add(bmain, workspace, screen, screen->id.name + 2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue