Commit: 6c915097453646023874480546f5e7e68489752c
Author: Campbell Barton
Date: Thu Jan 16 18:27:23 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rB6c915097453646023874480546f5e7e68489752c
Fix T73149: Adjust Last Operation uses horizontal layout
The horizontal layout was clipping text for some enums.
===================================================================
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 4ec62ff6d62..678b7d9dcee 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -1238,15 +1238,17 @@ static uiBlock *wm_block_create_redo(bContext *C,
ARegion *ar, void *arg_op)
}
}
+ uiLayout *col = uiLayoutColumn(layout, false);
+
if (op->type->flag & OPTYPE_MACRO) {
for (op = op->macro.first; op; op = op->next) {
uiTemplateOperatorPropertyButs(
- C, layout, op, UI_BUT_LABEL_ALIGN_NONE,
UI_TEMPLATE_OP_PROPS_SHOW_TITLE);
+ C, col, op, UI_BUT_LABEL_ALIGN_NONE,
UI_TEMPLATE_OP_PROPS_SHOW_TITLE);
}
}
else {
uiTemplateOperatorPropertyButs(
- C, layout, op, UI_BUT_LABEL_ALIGN_NONE,
UI_TEMPLATE_OP_PROPS_SHOW_TITLE);
+ C, col, op, UI_BUT_LABEL_ALIGN_NONE, UI_TEMPLATE_OP_PROPS_SHOW_TITLE);
}
UI_block_bounds_set_popup(block, 6 * U.dpi_fac, NULL);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs