Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-19 01:06:36 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-19 01:06:36 +0400
commitc26c5f38529fd490638aa4b8a8070715ecf4a3fc (patch)
tree99ff3b540d79946bd49c79def13fd5dad1e2d583 /source/blender/editors/interface/interface.c
parent97808449e617661f0a08677083ef4d6bc692e6d3 (diff)
UI: small tweak to tooltips for enum menus, it wasn't very clear which
description was for the property and which for the item.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r--source/blender/editors/interface/interface.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index b34b56f31ed..4b7adbc1064 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -2618,11 +2618,8 @@ static uiBut *ui_def_but_rna(uiBlock *block, int type, int retval, const char *s
else
BLI_dynstr_appendf(dynstr, "|%s %%x%d", item[i].name, item[i].value);
- if(value == item[i].value) {
+ if(value == item[i].value)
icon= item[i].icon;
- if(!tip)
- tip= item[i].description;
- }
}
str= BLI_dynstr_get_cstring(dynstr);
BLI_dynstr_free(dynstr);