From 4a63d2a2d28df692e57a2795b03bbd918f3f50e7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 1 Aug 2010 14:08:33 +0000 Subject: Fix for crash due to last commit. --- source/blender/editors/util/ed_util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source') 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(); -- cgit v1.2.3