diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-03-17 13:32:52 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-03-17 14:10:52 +0300 |
commit | 055863d9c1f0195765f421b1f87e445dd070ea00 (patch) | |
tree | fe171552f23a7c3c72b02ac68107b50b02897914 /source/blender/blenkernel/intern/undo_system.c | |
parent | 20d7c04305a39bc18d483baba26dfb54960bb92a (diff) |
Cleanup: minor changes.
Diffstat (limited to 'source/blender/blenkernel/intern/undo_system.c')
-rw-r--r-- | source/blender/blenkernel/intern/undo_system.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/undo_system.c b/source/blender/blenkernel/intern/undo_system.c index 74b322aeab7..30867cc15e9 100644 --- a/source/blender/blenkernel/intern/undo_system.c +++ b/source/blender/blenkernel/intern/undo_system.c @@ -163,6 +163,7 @@ static bool undosys_step_encode(bContext *C, Main *bmain, UndoStack *ustack, Und * not all members are filled in. */ us->type->step_foreach_ID_ref(us, undosys_id_ref_store, bmain); } + #ifdef WITH_GLOBAL_UNDO_CORRECT_ORDER if (us->type == BKE_UNDOSYS_TYPE_MEMFILE) { ustack->step_active_memfile = us; @@ -193,7 +194,7 @@ static void undosys_step_decode( * undo step will be correctly resolved, see: T56163. */ undosys_step_decode(C, bmain, ustack, us_iter, dir, false); /* May have been freed on memfile read. */ - bmain = G.main; + bmain = G_MAIN; } break; } |