Blender Git Commit Log

Git Commits -> Revision 1295852

Revision 1295852 by Brecht Van Lommel (master)
November 21, 2008, 02:23 (GMT)
RNA

* More ID property support. What was already possible was showing
ID properties as RNA properties. Now it is possible to define
RNA properties and have an ID property automatically created the
first time it is set (if not set it retuns the default).

* Added support for defining RNA structs and properties at runtime.
This is useful for python and plugins, and could also be used
for operators, not sure yet what is best there, they could be done
in preprocess for speed, but not sure how to do that while keeping
operator registration a single function.

* Added quick functions to get/set properties based on names, to be
used for operators.

* Added some simple support for inheritance, was already doing this
but having it as a feature simplifies things. Two things were added
for this: when defining a struct you can give a 'from' struct whose
properties will be copied, and structs like ID, operator, modifier,
can define a refine callback that will return the more specific type
of the struct like ID -> Object, Mesh, .. .

* Added simple windowmanager wrap with only the registered operators
list, used for testing RNA for operators.

Commit Details:

Full Hash: 129585285c47a016cf93fb183117eb86ce544461
SVN Revision: 17525
Parent Commit: a1b2c0c
Lines Changed: +1485, -619

1 Added Path:

/source/blender/makesrna/intern/rna_wm.c (+93, -0) (View)

15 Modified Paths:

/source/blender/makesrna/intern/makesrna.c (+24, -2) (Diff)
/source/blender/makesrna/intern/rna_access.c (+731, -174) (Diff)
/source/blender/makesrna/intern/rna_define.c (+359, -121) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+32, -116) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+33, -16) (Diff)
/source/blender/makesrna/intern/rna_internal_types.h (+13, -2) (Diff)
/source/blender/makesrna/intern/rna_lamp.c (+1, -4) (Diff)
/source/blender/makesrna/intern/rna_main.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_mesh.c (+2, -4) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -38) (Diff)
/source/blender/makesrna/intern/rna_rna.c (+125, -125) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+1, -3) (Diff)
/source/blender/makesrna/RNA_access.h (+53, -1) (Diff)
/source/blender/makesrna/RNA_define.h (+6, -8) (Diff)
/source/blender/makesrna/RNA_types.h (+7, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021