From 04428d6750d7309d7c7436c65b465f2b51d3d6a2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 19 Dec 2008 04:06:24 +0000 Subject: 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. --- source/blender/makesrna/intern/rna_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_main.c') diff --git a/source/blender/makesrna/intern/rna_main.c b/source/blender/makesrna/intern/rna_main.c index b2ee9f4e12f..cf6ebce2db6 100644 --- a/source/blender/makesrna/intern/rna_main.c +++ b/source/blender/makesrna/intern/rna_main.c @@ -251,7 +251,8 @@ void RNA_def_main(BlenderRNA *brna) {NULL, NULL, NULL, NULL, NULL}}; int i; - srna= RNA_def_struct(brna, "Main", NULL, "Main"); + srna= RNA_def_struct(brna, "Main", NULL); + RNA_def_struct_ui_text(srna, "Main", "DOC_BROKEN"); prop= RNA_def_property(srna, "filename", PROP_STRING, PROP_FILEPATH); RNA_def_property_string_maxlength(prop, 240); -- cgit v1.2.3