redo panel now runs check() function when defined, filesel and popup dialog were already doing this.

This commit is contained in:
Campbell Barton
2011-03-16 12:21:20 +00:00
parent 1787fdbeed
commit c32ca47c6f

View File

@@ -362,6 +362,11 @@ int ED_undo_operator_repeat(bContext *C, struct wmOperator *op)
if (G.f & G_DEBUG) if (G.f & G_DEBUG)
printf("redo_cb: operator redo %s\n", op->type->name); printf("redo_cb: operator redo %s\n", op->type->name);
ED_undo_pop_op(C, op); 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); retval= WM_operator_repeat(C, op);
if((retval & OPERATOR_FINISHED)==0) { if((retval & OPERATOR_FINISHED)==0) {
if (G.f & G_DEBUG) if (G.f & G_DEBUG)