diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2017-11-18 06:48:43 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2017-11-18 06:54:52 +0300 |
commit | fbfe7cc50a2f8b9aedce69cf456afb434bd50ff8 (patch) | |
tree | f6f0594a0435c1b6b013a319296a1e2864f0210b /source/blender/editors/interface/interface_templates.c | |
parent | d824d1026fe449041261394c302366b62e793bf6 (diff) |
Cleanup: Use enum instead of char codes, naming
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index 8dd39f84615..169964b9ccb 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -1421,11 +1421,12 @@ static void template_operator_redo_property_buts_draw( } } else { - uiTemplateOperatorPropertyButs(C, layout, op, NULL, '\0', layout_flags); + /* Might want to make label_align adjustable somehow. */ + uiTemplateOperatorPropertyButs(C, layout, op, NULL, UI_BUT_LABEL_ALIGN_NONE, layout_flags); } } -void uiTemplateOperatorRedo(uiLayout *layout, bContext *C) +void uiTemplateOperatorRedoProperties(uiLayout *layout, bContext *C) { wmOperator *op = WM_operator_last_redo(C); uiBlock *block = uiLayoutGetBlock(layout); @@ -3803,7 +3804,7 @@ static void ui_layout_operator_buts__reset_cb(bContext *UNUSED(C), void *op_pt, void uiTemplateOperatorPropertyButs( const bContext *C, uiLayout *layout, wmOperator *op, bool (*check_prop)(struct PointerRNA *, struct PropertyRNA *), - const char label_align, const short flag) + const eButLabelAlign label_align, const short flag) { uiBlock *block = uiLayoutGetBlock(layout); |