diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 07:06:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 07:06:24 +0300 |
commit | 04428d6750d7309d7c7436c65b465f2b51d3d6a2 (patch) | |
tree | 683c884c3c3986f8dcab09e3207b4a7743a5e1b5 /source/blender/makesrna/intern/rna_lattice.c | |
parent | d9de6fca6cda2a7ddeeb936692b529182a14dec9 (diff) |
added "description" and "readonly" properties to RNA Structs (also accessible via python)
Many descriptions are not written, grep for DOC_BROKEN if you have some spare time to write struct descriptions.
Diffstat (limited to 'source/blender/makesrna/intern/rna_lattice.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_lattice.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_lattice.c b/source/blender/makesrna/intern/rna_lattice.c index 1471d80e938..c2d4a53770b 100644 --- a/source/blender/makesrna/intern/rna_lattice.c +++ b/source/blender/makesrna/intern/rna_lattice.c @@ -46,7 +46,8 @@ void RNA_def_lattice(BlenderRNA *brna) {KEY_BSPLINE, "KEY_BSPLINE", "BSpline", ""}, {0, NULL, NULL, NULL}}; - srna= RNA_def_struct(brna, "Lattice", "ID", "Lattice"); + srna= RNA_def_struct(brna, "Lattice", "ID"); + RNA_def_struct_ui_text(srna, "Lattice", "DOC_BROKEN"); prop= RNA_def_property(srna, "points_u", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "pntsu"); |