diff options
author | raa <roaoao@gmail.com> | 2017-03-17 16:47:19 +0300 |
---|---|---|
committer | raa <roaoao@gmail.com> | 2017-03-17 16:57:53 +0300 |
commit | 9d873fc3debe03e87eb514f51fddf29ee76983b3 (patch) | |
tree | 9f7538a847a02c2dcce706635c57819d6c2ce5b7 /source/blender/editors/interface/interface.c | |
parent | ea3d7a7f58f67b5ce690a92aa0e81e4bb836170b (diff) |
Various icon adjustments
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 682db20af55..0328d09ef9a 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3913,6 +3913,8 @@ uiBut *uiDefIconTextButO_ptr(uiBlock *block, int type, wmOperatorType *ot, int o uiBut *uiDefIconTextButO(uiBlock *block, int type, const char *opname, int opcontext, int icon, const char *str, int x, int y, short width, short height, const char *tip) { wmOperatorType *ot = WM_operatortype_find(opname, 0); + if (str[0] == '\0') + return uiDefIconButO_ptr(block, type, ot, opcontext, icon, x, y, width, height, tip); return uiDefIconTextButO_ptr(block, type, ot, opcontext, icon, str, x, y, width, height, tip); } |