Commit: cfeffa7529a251c3a2af2cf2208a8550eb81ddcc
Author: Bastien Montagne
Date:   Mon Jan 7 09:51:41 2019 +0100
Branches: master
https://developer.blender.org/rBcfeffa7529a251c3a2af2cf2208a8550eb81ddcc

Fix T60247: app.handlers.undo_post calls undo_pre's function.

Undo and redo post were actually calling respective pre funcs...

===================================================================

M       source/blender/editors/undo/ed_undo.c

===================================================================

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

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to