Blender Git Commit Log

Git Commits -> Revision 2ba8b72

Revision 2ba8b72 by Campbell Barton (master)
July 13, 2009, 19:33 (GMT)
RNA & PyAPI
* support for dynamic enums to be inspected enumProp.items() from python.
* fix, enums check for a separator was flipped, meant no enums were in docs.
* dynamic enum functions now check for a NULL context and return all possible options for the "items" attribute used for docs.
* added an arg for rna arrays to free the array there looping over (needed to free dynamically allocated enum items)
* python api checks for NULL items since this can happen in some cases.
* python api, When getting an enum ID from an int in an array - If it failed it would get the first enum identifier and return that. Brecht? dont understand, making it return an empty string in these cases.

Commit Details:

Full Hash: 2ba8b72157d22ee92359e87e88860443a1f5cef2
SVN Revision: 21564
Parent Commit: 1334ed3
Lines Changed: +197, -73

21 Modified Paths:

/source/blender/editors/mesh/editmesh_mods.c (+18, -5) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+17, -6) (Diff)
/source/blender/editors/transform/transform_orientations.c (+13, -2) (Diff)
/source/blender/makesrna/intern/makesrna.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_access.c (+22, -10) (Diff)
/source/blender/makesrna/intern/rna_brush.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_color.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+28, -0) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_key.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_lamp.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_lattice.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+12, -12) (Diff)
/source/blender/makesrna/intern/rna_modifier.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+42, -0) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+7, -4) (Diff)
/source/blender/makesrna/intern/rna_space.c (+5, -0) (Diff)
/source/blender/makesrna/intern/rna_world.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+16, -18) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021