diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index cd2b6a793b7..3491c1b4df2 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -79,6 +79,9 @@ void ED_editors_exit(bContext *C) { Main *bmain= CTX_data_main(C); Scene *sce; + + if(!bmain) + return; /* frees all editmode undos */ undo_editmode_clear(); |