Blender Git Loki
Git Commits -> Revision 89ed6b1
Revision 89ed6b1 by Campbell Barton (master) September 2, 2020, 03:01 (GMT) |
UI: simplify tool-tip logic for operators - Use WM_operatortype_description to get the operator description. - Pass properties to WM_operatortype_name, so the operator name callback is used. - Add UI_but_operatortype_get_from_enum_menu function to access the operator from enum menus. - Change WM_operatortype_description to return NULL when there is no description, use WM_operatortype_description_or_name when either can be used. |
Commit Details:
Full Hash: 89ed6b12936bc2a89b18cf6dbd7b86e0fbc760d3
Parent Commit: ddea2f2
Lines Changed: +56, -22
6 Modified Paths:
/source/blender/editors/include/UI_interface.h (+2, -0) (Diff)
/source/blender/editors/interface/interface.c (+14, -8) (Diff)
/source/blender/editors/interface/interface_layout.c (+19, -8) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operator_type.c (+17, -5) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/editors/interface/interface.c (+14, -8) (Diff)
/source/blender/editors/interface/interface_layout.c (+19, -8) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_operator_type.c (+17, -5) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)