diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-01 18:08:33 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-01 18:08:33 +0400 |
commit | 4a63d2a2d28df692e57a2795b03bbd918f3f50e7 (patch) | |
tree | 8b0cf05859643fe2b4a57c6e33480b0f81aa7ed4 /source/blender/editors/util | |
parent | e33d7d37c95922da92fd7b2dad97b21a80de521a (diff) |
Fix for crash due to last commit.
Diffstat (limited to 'source/blender/editors/util')
-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(); |