Cleanup: minor changes.

This commit is contained in:
Bastien Montagne 2020-03-17 11:32:52 +01:00
parent 20d7c04305
commit 055863d9c1
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}