Blender Git Commit Log

Git Commits -> Revision de525a2

September 12, 2019, 01:13 (GMT)
Python API: implement an Operator callback for dynamic description.

Blender UI Layout API allows supplying parameters to operators via
button definitions. If an operator behavior strongly depends on its
parameters, it may be difficult to write a tooltip that covers all
of its operation modes. Thus it is useful to provide a way for the
operator to produce different descriptions based on the input info.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D5709

Commit Details:

Full Hash: de525a249d4df896f7e6654717efe7b945a7e59f
Parent Commit: a9816ec
Committed By: YimingWu
Lines Changed: +114, -14

8 Modified Paths:

/source/blender/editors/interface/interface.c (+4, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -9) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+35, -1) (Diff)
/source/blender/makesrna/intern/rna_wm_api.c (+12, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+18, -3) (Diff)
/source/blender/windowmanager/intern/wm_operator_type.c (+31, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021