Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-12-19 07:06:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-19 07:06:24 +0300
commit04428d6750d7309d7c7436c65b465f2b51d3d6a2 (patch)
tree683c884c3c3986f8dcab09e3207b4a7743a5e1b5 /source/blender/makesrna/intern/rna_meta.c
parentd9de6fca6cda2a7ddeeb936692b529182a14dec9 (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_meta.c')
-rw-r--r--source/blender/makesrna/intern/rna_meta.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_meta.c b/source/blender/makesrna/intern/rna_meta.c
index 9b88c80d0d4..043f9932622 100644
--- a/source/blender/makesrna/intern/rna_meta.c
+++ b/source/blender/makesrna/intern/rna_meta.c
@@ -53,7 +53,8 @@ void rna_def_metaelement(BlenderRNA *brna)
{MB_CUBE, "CUBE", "Cube", ""},
{0, NULL, NULL, NULL}};
- srna= RNA_def_struct(brna, "MetaElement", NULL, "Meta Element");
+ srna= RNA_def_struct(brna, "MetaElement", NULL);
+ RNA_def_struct_ui_text(srna, "Meta Element", "DOC_BROKEN");
RNA_def_struct_sdna(srna, "MetaElem");
/* enums */
@@ -108,7 +109,8 @@ void rna_def_metaball(BlenderRNA *brna)
{MB_UPDATE_NEVER, "NEVER", "Never", "While editing, don't update metaball at all."},
{0, NULL, NULL, NULL}};
- srna= RNA_def_struct(brna, "MetaBall", "ID", "MetaBall");
+ srna= RNA_def_struct(brna, "MetaBall", "ID");
+ RNA_def_struct_ui_text(srna, "MetaBall", "DOC_BROKEN");
prop= RNA_def_property(srna, "elements", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "elems", NULL);