From c32ca47c6fbd7c94382bc2511dfba547f39a35c7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 16 Mar 2011 12:21:20 +0000 Subject: [PATCH] redo panel now runs check() function when defined, filesel and popup dialog were already doing this. --- source/blender/editors/util/undo.c | 5 +++++ 1 file changed, 5 insertions(+) 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)