WM: HUD was disappearing on redo

This commit is contained in:
Campbell Barton 2018-06-12 16:59:37 +02:00
parent 97cac69739
commit 8826a00482
1 changed files with 6 additions and 2 deletions

View File

@ -857,11 +857,15 @@ static void wm_operator_finished(bContext *C, wmOperator *op, const bool repeat,
if (wm->op_undo_depth == 0) {
if (op->type->flag & OPTYPE_UNDO) {
ED_undo_push_op(C, op);
hud_status = CLEAR;
if (repeat == 0) {
hud_status = CLEAR;
}
}
else if (op->type->flag & OPTYPE_UNDO_GROUPED) {
ED_undo_grouped_push_op(C, op);
hud_status = CLEAR;
if (repeat == 0) {
hud_status = CLEAR;
}
}
}