diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-16 15:21:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-16 15:21:20 +0300 |
commit | c32ca47c6fbd7c94382bc2511dfba547f39a35c7 (patch) | |
tree | ea184bf1912c7352ef1e7a51d20d6040083239fd /source/blender/editors/util | |
parent | 1787fdbeed1085f7bf7778d1f6b7d4a4b68645df (diff) |
redo panel now runs check() function when defined, filesel and popup dialog were already doing this.
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r-- | source/blender/editors/util/undo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/util/undo.c b/source/blender/editors/util/undo.c index 2659863e592..60f551afa6e 100644 --- a/source/blender/editors/util/undo.c +++ b/source/blender/editors/util/undo.c @@ -362,6 +362,11 @@ int ED_undo_operator_repeat(bContext *C, struct wmOperator *op) if (G.f & G_DEBUG) printf("redo_cb: operator redo %s\n", op->type->name); ED_undo_pop_op(C, op); + + if(op->type->check) { + op->type->check(C, op); /* ignore return value since its running again anyway */ + } + retval= WM_operator_repeat(C, op); if((retval & OPERATOR_FINISHED)==0) { if (G.f & G_DEBUG) |