redo panel now runs check() function when defined, filesel and popup dialog were already doing this.
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user