WM: don't show redo hud when unsupported

This commit is contained in:
Campbell Barton 2018-06-12 22:33:58 +02:00
parent 98e0bd90f4
commit 6700c02e53
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ static bool last_redo_poll(const bContext *C)
return false;
}
bool success = false;
if (!WM_operator_check_ui_empty(op->type)) {
if (WM_operator_repeat_check(C, op) &&
WM_operator_check_ui_empty(op->type) == false)
{
success = WM_operator_poll((bContext *)C, op->type);
}
return success;