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:
authorJulian Eisel <eiseljulian@gmail.com>2019-05-24 20:49:44 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-05-24 20:56:08 +0300
commit6d0a6e380e571c9986635d71191ff05f68a53035 (patch)
tree3c654e5d35564ea85059b18fe28194371c5134f1 /source/blender/windowmanager
parent31333fc193ce39015eab50734c0048f64423091e (diff)
Fix failing assert on factory settings load
Loading factory preferences from the preferences window and triggering a redraw then would cause the failing assert. We shouldn't mess with window-manager data when loading preferences only.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 097db49aea6..d93d4a618d7 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -978,7 +978,7 @@ void wm_homefile_read(bContext *C,
}
}
}
- if (BLI_listbase_is_empty(&wmbase)) {
+ if (use_data && BLI_listbase_is_empty(&wmbase)) {
wm_clear_default_size(C);
}
}