Blender Git Commit Log

Git Commits -> Revision bc97c0d

September 12, 2019, 01:13 (GMT)
Fix T69633: weird behavior of operator_menu_enum tooltips.

For operators with dynamic tooltips the tooltip calculation is
deferred until the moment it is actually shown for performance
reasons, with the tooltip field left blank for the time being.
Enum menu code shouldn't jump in and assign a tooltip either.

The menu button itself can't show a dynamic tooltip because it
does not actually call the operator, and has no reference to it.

As a side change, allow returning None from the python callback
as the most natural way to fall back to the default tooltip.

Commit Details:

Full Hash: bc97c0d8b962f6fe06000be787fd9fc436199383
Parent Commit: e5513df
Committed By: YimingWu
Lines Changed: +3, -1

2 Modified Paths:

/source/blender/editors/interface/interface_layout.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021