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:
authorJulian Eisel <eiseljulian@gmail.com>2018-10-31 01:20:08 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-10-31 01:21:34 +0300
commita287194bcee5e0b0ce86cadc3b7864bd2dc01674 (patch)
treee5047366c2685c39a5646368aadc102d598f4a82 /source/blender
parente9980e5a75e160bb038456b8cb09804f19bea00c (diff)
Fix Properties tabs all showing tooltip of active tab
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 4ed996f3afa..0ad7a18b5ac 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -4755,7 +4755,7 @@ void UI_but_string_info_get(bContext *C, uiBut *but, ...)
/* enum property */
ptr = &but->rnapoin;
prop = but->rnaprop;
- value = (but->type == UI_BTYPE_ROW) ? (int)but->hardmax : (int)ui_but_value_get(but);
+ value = (ELEM(but->type, UI_BTYPE_ROW, UI_BTYPE_TAB)) ? (int)but->hardmax : (int)ui_but_value_get(but);
}
else if (but->optype) {
PointerRNA *opptr = UI_but_operator_ptr_get(but);