diff options
author | Falk David <falkdavid@gmx.de> | 2021-01-26 01:15:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-26 01:18:26 +0300 |
commit | 6249995c5ebb65127daae6fa235b7db9d26c9950 (patch) | |
tree | 381a919dfede5775832711802e85540f717ef10f /source/blender/editors/undo | |
parent | eaa726542e971f7e39cc5b65c5f66f66a042a0be (diff) |
Fix T85054: undo/redo app handlers broken
Regression in recent commit c13383da416c9c99d03058caaf66c736af0272cb
which swapped undo/redo when calling the handlers.
Ref D10200
Diffstat (limited to 'source/blender/editors/undo')
-rw-r--r-- | source/blender/editors/undo/ed_undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/undo/ed_undo.c b/source/blender/editors/undo/ed_undo.c index 860eaa37816..723e92b9d09 100644 --- a/source/blender/editors/undo/ed_undo.c +++ b/source/blender/editors/undo/ed_undo.c @@ -252,7 +252,7 @@ static int ed_undo_step_impl(bContext *C, Main *bmain = CTX_data_main(C); wm->op_undo_depth++; BKE_callback_exec_id( - bmain, &scene->id, (step_for_callback > 0) ? BKE_CB_EVT_UNDO_PRE : BKE_CB_EVT_REDO_PRE); + bmain, &scene->id, (step_for_callback == STEP_UNDO) ? BKE_CB_EVT_UNDO_PRE : BKE_CB_EVT_REDO_PRE); wm->op_undo_depth--; } @@ -301,7 +301,7 @@ static int ed_undo_step_impl(bContext *C, scene = CTX_data_scene(C); wm->op_undo_depth++; BKE_callback_exec_id( - bmain, &scene->id, step_for_callback > 0 ? BKE_CB_EVT_UNDO_POST : BKE_CB_EVT_REDO_POST); + bmain, &scene->id, (step_for_callback == STEP_UNDO) ? BKE_CB_EVT_UNDO_POST : BKE_CB_EVT_REDO_POST); wm->op_undo_depth--; } |