[Bf-blender-cvs] [d2699f2] master: Fix T38538: repeat history menu show operators that can't be repeated.
Brecht Van Lommel
noreply at git.blender.org
Fri Feb 7 17:11:22 CET 2014
Commit: d2699f233adc8b34123a25db73bb4bd3e603b04a
Author: Brecht Van Lommel
Date: Fri Feb 7 17:10:36 2014 +0100
https://developer.blender.org/rBd2699f233adc8b34123a25db73bb4bd3e603b04a
Fix T38538: repeat history menu show operators that can't be repeated.
===================================================================
M source/blender/editors/screen/screen_ops.c
===================================================================
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c
index fcedf78..4c57346 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);
More information about the Bf-blender-cvs
mailing list