diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-07 11:51:41 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-07 11:53:46 +0300 |
commit | cfeffa7529a251c3a2af2cf2208a8550eb81ddcc (patch) | |
tree | 75531f590a553245e64c788145a0d5cf9fd02520 /source/blender/editors/undo/ed_undo.c | |
parent | 6015a03255aff57a3b8d7d312d26081d9f72491f (diff) |
Fix T60247: app.handlers.undo_post calls undo_pre's function.
Undo and redo post were actually calling respective pre funcs...
Diffstat (limited to 'source/blender/editors/undo/ed_undo.c')
-rw-r--r-- | source/blender/editors/undo/ed_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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--; } |