diff options
Diffstat (limited to 'source/blender/editors/util/ed_util.c')
-rw-r--r-- | source/blender/editors/util/ed_util.c | 4 |
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) { |