diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-05-24 20:49:44 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-05-24 20:56:08 +0300 |
commit | 6d0a6e380e571c9986635d71191ff05f68a53035 (patch) | |
tree | 3c654e5d35564ea85059b18fe28194371c5134f1 /source | |
parent | 31333fc193ce39015eab50734c0048f64423091e (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')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 |
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); } } |