Fix T38538: repeat history menu show operators that can't be repeated.

This commit is contained in:
Brecht Van Lommel 2014-02-07 17:10:36 +01:00
parent b4fb1e6d9f
commit d2699f233a
Notes: blender-bot 2023-02-14 11:13:25 +01:00
Referenced by issue #38538, Repeat History displays operators with redo unsupported.
1 changed files with 2 additions and 1 deletions

View File

@ -2753,7 +2753,8 @@ static int repeat_history_invoke(bContext *C, wmOperator *op, const wmEvent *UNU
layout = uiPupMenuLayout(pup);
for (i = items - 1, lastop = wm->operators.last; lastop; lastop = lastop->prev, i--)
uiItemIntO(layout, RNA_struct_ui_name(lastop->type->srna), ICON_NONE, op->type->idname, "index", i);
if (WM_operator_repeat_check(C, lastop))
uiItemIntO(layout, RNA_struct_ui_name(lastop->type->srna), ICON_NONE, op->type->idname, "index", i);
uiPupMenuEnd(C, pup);