[Bf-blender-cvs] [d2660a0] master: Fix T39260: "Redo Last" operator popup shows macro operator labels twice.
Lukas Tönne
noreply at git.blender.org
Wed Mar 19 13:26:03 CET 2014
Commit: d2660a079c9b950180aa000265267116bbd7c875
Author: Lukas Tönne
Date: Wed Mar 19 13:18:43 2014 +0100
https://developer.blender.org/rBd2660a079c9b950180aa000265267116bbd7c875
Fix T39260: "Redo Last" operator popup shows macro operator labels twice.
The popup was showing an explicit uiItemL as well as using the
UI_LAYOUT_OP_SHOW_TITLE flag. Both do the exact same thing.
===================================================================
M source/blender/windowmanager/intern/wm_operators.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 2752d33..39a734c 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1413,7 +1413,6 @@ static uiBlock *wm_block_create_redo(bContext *C, ARegion *ar, void *arg_op)
if (op->type->flag & OPTYPE_MACRO) {
for (op = op->macro.first; op; op = op->next) {
- uiItemL(layout, RNA_struct_ui_name(op->type->srna), ICON_NONE);
uiLayoutOperatorButs(C, layout, op, NULL, 'H', UI_LAYOUT_OP_SHOW_TITLE);
}
}
More information about the Bf-blender-cvs
mailing list