Blender Git Commit Log

Git Commits -> Revision ebe04bd

Revision ebe04bd by Campbell Barton (master)
April 20, 2021, 02:07 (GMT)
PyAPI: support Operator.poll functions 'disabled' hint

Python scripts can now define the reason it's poll function fails using:

`Operator.poll_message_set(message, ...)`

This supports both regular text as well as delaying message creation
using a callback which should be used in situations where constructing
detailed messages is too much overhead for a poll function.

Ref D11001

Commit Details:

Full Hash: ebe04bd3cafaa1f88bd51eee5b3e7bef38ae69bc
Parent Commit: 985ccba
Lines Changed: +277, -4

2 Added Paths:

/source/blender/python/intern/bpy_rna_operator.c (+150, -0) (View)
/source/blender/python/intern/bpy_rna_operator.h (+31, -0) (View)

7 Modified Paths:

/source/blender/blenkernel/BKE_context.h (+17, -1) (Diff)
/source/blender/blenkernel/intern/context.c (+38, -1) (Diff)
/source/blender/editors/interface/interface_region_tooltip.c (+5, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+11, -0) (Diff)
/source/blender/python/intern/bpy_operator.c (+5, -1) (Diff)
/source/blender/python/intern/bpy_rna_types_capi.c (+18, -0) (Diff)
/source/blender/python/intern/CMakeLists.txt (+2, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021