Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-16 15:21:20 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-16 15:21:20 +0300
commitc32ca47c6fbd7c94382bc2511dfba547f39a35c7 (patch)
treeea184bf1912c7352ef1e7a51d20d6040083239fd /source/blender/editors/util
parent1787fdbeed1085f7bf7778d1f6b7d4a4b68645df (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.c5
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)