From cfeffa7529a251c3a2af2cf2208a8550eb81ddcc Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 7 Jan 2019 09:51:41 +0100 Subject: [PATCH] Fix T60247: app.handlers.undo_post calls undo_pre's function. Undo and redo post were actually calling respective pre funcs... --- source/blender/editors/undo/ed_undo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c index 17e5fe912e1..09de2998561 100644 --- a/source/blender/editors/undo/ed_undo.c +++ b/source/blender/editors/undo/ed_undo.c @@ -199,7 +199,7 @@ static int ed_undo_step(bContext *C, int step, const char *undoname, ReportList Main *bmain = CTX_data_main(C); scene = CTX_data_scene(C); wm->op_undo_depth++; - BLI_callback_exec(bmain, &scene->id, step_for_callback > 0 ? BLI_CB_EVT_UNDO_PRE : BLI_CB_EVT_REDO_PRE); + BLI_callback_exec(bmain, &scene->id, step_for_callback > 0 ? BLI_CB_EVT_UNDO_POST : BLI_CB_EVT_REDO_POST); wm->op_undo_depth--; }