Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-01 18:08:33 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-01 18:08:33 +0400
commit4a63d2a2d28df692e57a2795b03bbd918f3f50e7 (patch)
tree8b0cf05859643fe2b4a57c6e33480b0f81aa7ed4 /source
parente33d7d37c95922da92fd7b2dad97b21a80de521a (diff)
Fix for crash due to last commit.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/util/ed_util.c3
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();