Blender Git Commit Log

Git Commits -> Revision 337b718

Revision 337b718 by Bastien Montagne (master)
February 9, 2016, 11:51 (GMT)
Fix T47371 - add access to 'static' enum items.

Some dynamic enums, which do not need a valid context pointer, have their 'itemf'
callback always called. This is annoying for introspection tools (like the ones generating
translations, or API documentation), because it means they never have access to all possible
options (enum items).

So now, there is also an `enum_items_static` accessor to get only statically-defined
enum items.

Note: only i18n tools take advantage of this currently, others are still to be updated.

Reviewers: campbellbarton, sergey

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

Commit Details:

Full Hash: 337b718695c8b31dadc22438b9f1af40d225e0ad
Parent Commit: ae2036e
Lines Changed: +35, -4

4 Modified Paths:

/release/scripts/modules/bl_i18n_utils/bl_extract_messages.py (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+10, -3) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+10, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021