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>2018-10-29 09:32:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-10-29 09:36:39 +0300
commit0e268fb68b612e44a74a74631df206c8aaded97b (patch)
tree6ff83fb862fda50b7659ead6ec88ff9fa002114a /source/blender/editors/undo/memfile_undo.c
parentcf1cf105a0d10fb4b99d9ff01fc75520dacaacfd (diff)
Fix topbar tool UI being lost on undo
Using operators to the object mode was resetting the tool. See: T56865
Diffstat (limited to 'source/blender/editors/undo/memfile_undo.c')
-rw-r--r--source/blender/editors/undo/memfile_undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/undo/memfile_undo.c b/source/blender/editors/undo/memfile_undo.c
index d45470ab0a1..4b38ab282a0 100644
--- a/source/blender/editors/undo/memfile_undo.c
+++ b/source/blender/editors/undo/memfile_undo.c
@@ -83,7 +83,7 @@ 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_set(C, OB_MODE_OBJECT);
+ ED_object_mode_exit(C);
MemFileUndoStep *us = (MemFileUndoStep *)us_p;
BKE_memfile_undo_decode(us->data, C);