Blender Git Loki
Git Commits -> Revision e5e0888
Revision e5e0888 by Campbell Barton (master) March 12, 2014, 11:56 (GMT) |
UI: allow passing "" for icon only enum buttons and still get an icon Enum icon-only buttons were getting their strings set, then truncated with blenders string shortening methods, then not drawn because there was no room (since buttons are icon width). Modify UI code so icon-only buttons don't get names and passing "" to a button won't have its text set later on. |
Commit Details:
Full Hash: e5e0888a8f024bdc2d3196055762050195bec7a9
Parent Commit: a7faad9
Lines Changed: +67, -48
7 Modified Paths:
/source/blender/editors/include/UI_interface.h (+0, -2) (Diff)
/source/blender/editors/interface/interface.c (+32, -27) (Diff)
/source/blender/editors/interface/interface_layout.c (+15, -3) (Diff)
/source/blender/editors/interface/interface_templates.c (+0, -2) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+18, -12) (Diff)
/source/blender/editors/screen/area.c (+1, -1) (Diff)
/source/blender/editors/interface/interface.c (+32, -27) (Diff)
/source/blender/editors/interface/interface_layout.c (+15, -3) (Diff)
/source/blender/editors/interface/interface_templates.c (+0, -2) (Diff)
/source/blender/editors/interface/interface_utils.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+18, -12) (Diff)
/source/blender/editors/screen/area.c (+1, -1) (Diff)