[Bf-blender-cvs] [a287194bcee] blender2.8: Fix Properties tabs all showing tooltip of active tab
Julian Eisel
noreply at git.blender.org
Tue Oct 30 23:22:04 CET 2018
Commit: a287194bcee5e0b0ce86cadc3b7864bd2dc01674
Author: Julian Eisel
Date: Tue Oct 30 23:20:08 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBa287194bcee5e0b0ce86cadc3b7864bd2dc01674
Fix Properties tabs all showing tooltip of active tab
===================================================================
M source/blender/editors/interface/interface.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list