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:
parent
e20557046b
commit
844c7440fc
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue