Blender Git Loki

Git Commits -> Revision 2e3e044

Revision 2e3e044 by Brecht Van Lommel (master)
July 10, 2009, 19:56 (GMT)
RNA

* Enums can now be dynamically created in the _itemf callback,
using RNA_enum_item(s)_add, RNA_enum_item_end. All places asking
for enum items now need to potentially free the items.
* This callback now also gets context, this was added specifically
for operators. This doesn't fit design well at all, needed to do
some ugly hacks, but can't find a good solution at the moment.
* All enums must have a default list of items too, even with an
_itemf callback, for docs and fallback in case there is no context.

* Used by MESH_OT_merge, MESH_OT_select_similar, TFM_OT_select_orientation.
* Also changes some operator properties that were enums to booleas
(unselected, deselect), to make them consistent with other ops.

Commit Details:

Full Hash: 2e3e044d27e90dc87bdce6af9cef77d9543e4d89
SVN Revision: 21506
Parent Commit: a95c68a
Lines Changed: +383, -241

28 Modified Paths:

/release/ui/space_sequencer.py (+1, -1) (Diff)
/source/blender/editors/include/ED_transform.h (+2, -1) (Diff)
/source/blender/editors/interface/interface.c (+18, -9) (Diff)
/source/blender/editors/interface/interface_intern.h (+2, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+44, -22) (Diff)
/source/blender/editors/mesh/editmesh.c (+4, -4) (Diff)
/source/blender/editors/mesh/editmesh_mods.c (+22, -5) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+28, -19) (Diff)
/source/blender/editors/mesh/mesh_ops.c (+2, -1) (Diff)
/source/blender/editors/object/object_edit.c (+12, -9) (Diff)
/source/blender/editors/space_sequencer/sequencer_edit.c (+4, -11) (Diff)
/source/blender/editors/space_sequencer/sequencer_ops.c (+4, -4) (Diff)
/source/blender/editors/space_view3d/view3d_ops.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_select.c (+5, -16) (Diff)
/source/blender/editors/transform/transform_ops.c (+10, -8) (Diff)
/source/blender/editors/transform/transform_orientations.c (+29, -9) (Diff)
/source/blender/makesrna/intern/makesrna.c (+0, -1) (Diff)
/source/blender/makesrna/intern/rna_access.c (+36, -21) (Diff)
/source/blender/makesrna/intern/rna_constraint.c (+15, -14) (Diff)
/source/blender/makesrna/intern/rna_define.c (+35, -1) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+63, -60) (Diff)
/source/blender/makesrna/intern/rna_space.c (+1, -1) (Diff)
/source/blender/makesrna/RNA_access.h (+8, -8) (Diff)
/source/blender/makesrna/RNA_define.h (+7, -0) (Diff)
/source/blender/makesrna/RNA_types.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+24, -10) (Diff)
/source/blender/python/intern/bpy_util.c (+2, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021