Fix (unreported) `bpy.ops.wm.read_factory_settings(use_empty=True)` crash.

`BKE_blendfile_read_make_empty()` was not preserving workspaces...
This commit is contained in:
Bastien Montagne 2018-11-14 18:04:01 +01:00
parent e20557046b
commit 844c7440fc
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ void BKE_blendfile_read_make_empty(bContext *C)
while (a--) {
id = lbarray[a]->first;
if (id != NULL) {
if (ELEM(GS(id->name), ID_SCE, ID_SCR, ID_WM)) {
if (ELEM(GS(id->name), ID_SCE, ID_SCR, ID_WM, ID_WS)) {
continue;
}
while ((id = lbarray[a]->first)) {