diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-16 13:39:30 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-16 13:39:30 +0300 |
commit | fcbbfb7789890624cdfb78e2b6036414d925616b (patch) | |
tree | 0b20bbb1edb5baf2dd26cbb3147994b4a92173ba /source/blender/blenkernel/intern/main.c | |
parent | bcef99d3a7a04ce318da07c3ff03771f85804092 (diff) |
Fix crash creating new file after modifications
Seems to be caused by cae3750 which changed free() function used
by bmain free to the one which does dependency graph tag. We do
no want to do any tags here.
Diffstat (limited to 'source/blender/blenkernel/intern/main.c')
-rw-r--r-- | source/blender/blenkernel/intern/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/main.c b/source/blender/blenkernel/intern/main.c index 00a950c5302..9f952939eef 100644 --- a/source/blender/blenkernel/intern/main.c +++ b/source/blender/blenkernel/intern/main.c @@ -65,7 +65,10 @@ void BKE_main_free(Main *mainvar) int a; /* Since we are removing whole main, no need to bother 'properly' (and slowly) removing each ID from it. */ - const int free_flag = LIB_ID_FREE_NO_MAIN | LIB_ID_FREE_NO_UI_USER | LIB_ID_FREE_NO_USER_REFCOUNT; + const int free_flag = (LIB_ID_FREE_NO_MAIN | + LIB_ID_FREE_NO_UI_USER | + LIB_ID_FREE_NO_USER_REFCOUNT | + LIB_ID_FREE_NO_DEG_TAG); MEM_SAFE_FREE(mainvar->blen_thumb); |