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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-01-15 13:33:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-15 13:36:50 +0300
commit0b9a65151d9fc0c7e4ec273da7e4bcc3b09a6d18 (patch)
treebdc5b9ee056ae87ad020e81994c1a9392db9e31a /source/blender/editors/util/ed_util.c
parente375685e06d0b4c52a0aacb8982684e45b490d5c (diff)
Fix T60410: Crash adjusting torus w/ enter edit-mode preference
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r--source/blender/editors/util/ed_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c
index 30021d6a0c9..720b8357a12 100644
--- a/source/blender/editors/util/ed_util.c
+++ b/source/blender/editors/util/ed_util.c
@@ -157,14 +157,14 @@ void ED_editors_init(bContext *C)
}
/* frees all editmode stuff */
-void ED_editors_exit(Main *bmain)
+void ED_editors_exit(Main *bmain, bool do_undo_system)
{
if (!bmain) {
return;
}
/* frees all editmode undos */
- if (G_MAIN->wm.first) {
+ if (do_undo_system && G_MAIN->wm.first) {
wmWindowManager *wm = G_MAIN->wm.first;
/* normally we don't check for NULL undo stack, do here since it may run in different context. */
if (wm->undo_stack) {