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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to