diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-09-02 05:54:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-09-02 06:01:04 +0300 |
commit | 89ed6b12936bc2a89b18cf6dbd7b86e0fbc760d3 (patch) | |
tree | 40721eeba62010ee81d86df55fed5fb236d58364 /source/blender/python/intern/bpy_rna_types_capi.c | |
parent | ddea2f234f0a5f00ffcc35bb6ee1a1ace6c26d8e (diff) |
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.
Diffstat (limited to 'source/blender/python/intern/bpy_rna_types_capi.c')
0 files changed, 0 insertions, 0 deletions