forked from bartvdbraak/blender
Fix T38538: repeat history menu show operators that can't be repeated.
This commit is contained in:
parent
b4fb1e6d9f
commit
d2699f233a
@ -2753,6 +2753,7 @@ 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--)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user