Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-14 20:04:01 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-14 20:21:06 +0300
commit844c7440fcbf2aa30d73418f43e6cb42cf27a6ee (patch)
tree31a939b590adf76b64ce345695c3c2aa40ab49cc /source/blender/blenkernel/intern/blendfile.c
parente20557046b9d949385466d6e24a3fb3f580c4761 (diff)
Fix (unreported) `bpy.ops.wm.read_factory_settings(use_empty=True)` crash.
`BKE_blendfile_read_make_empty()` was not preserving workspaces...
Diffstat (limited to 'source/blender/blenkernel/intern/blendfile.c')
-rw-r--r--source/blender/blenkernel/intern/blendfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index 5f716d191e4..5a975402c90 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -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)) {