diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-07 20:10:36 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-07 20:11:09 +0400 |
commit | d2699f233adc8b34123a25db73bb4bd3e603b04a (patch) | |
tree | de37daf40634f5acf46c9ba20bd636eb68e03627 | |
parent | b4fb1e6d9f318aa7bed6af8902dd839c0ce76948 (diff) |
Fix T38538: repeat history menu show operators that can't be repeated.
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index fcedf78c874..4c573463d14 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -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); |