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-09 08:53:44 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-09 09:37:13 +0300
commit7e6d7d53cf9d269c402b4eef5eae7b8c363b6707 (patch)
treea6b752f693357eee55556f2557c671740d009f03 /source/blender/editors/undo
parent9012ad155c4f92a48f9c684c0dc5c7dd9a481cca (diff)
Fix memfile undo decoding creating undo steps
Exiting modes shouldn't be needed since loading the new memfile will free the old data. Sculpt mode dynamic topology was adding undo data on exiting the mode which isn't logical in this case and can be avoided altogether.
Diffstat (limited to 'source/blender/editors/undo')
-rw-r--r--source/blender/editors/undo/memfile_undo.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/undo/memfile_undo.c b/source/blender/editors/undo/memfile_undo.c
index 4b38ab282a0..2470acef9aa 100644
--- a/source/blender/editors/undo/memfile_undo.c
+++ b/source/blender/editors/undo/memfile_undo.c
@@ -82,9 +82,6 @@ static bool memfile_undosys_step_encode(struct bContext *C, UndoStep *us_p)
static void memfile_undosys_step_decode(struct bContext *C, UndoStep *us_p, int UNUSED(dir))
{
- /* Loading the content will correctly switch into compatible non-object modes. */
- ED_object_mode_exit(C);
-
MemFileUndoStep *us = (MemFileUndoStep *)us_p;
BKE_memfile_undo_decode(us->data, C);