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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-29 17:35:50 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-29 17:35:50 +0300
commit97dcbbf88612fd89e0643e75994b82294bdabb2c (patch)
tree481e5560bc00ea76862eb196552174f9795a6e4c /source/blender/makesrna/intern/rna_mesh.c
parent4fc369564a59aeb36ce7fcfd2c6ada43a2f80777 (diff)
RNA
* Added more lamp properties. (patch by Michael Fox) * Fix a number of warnings in the RNA code. * Converted DOS line endings to UNIX. * Added some information on defining ID structs, and fixed use of "ID" inheritance for some non-ID structs. * Added text on naming conventions to the RNA documentation, and applied it to the current code. http://wiki.blender.org/index.php/BlenderDev/Blender2.5/RNA#Naming_Conventions
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh.c')
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c
index 851d1fc2ae8..f4ab7277247 100644
--- a/source/blender/makesrna/intern/rna_mesh.c
+++ b/source/blender/makesrna/intern/rna_mesh.c
@@ -444,7 +444,8 @@ static void rna_def_mvert_group(BlenderRNA *brna)
srna= RNA_def_struct(brna, "MVertGroup", NULL, "Mesh Vertex Group");
RNA_def_struct_sdna(srna, "MDeformWeight");
- /* XXX how to point to actual group? */
+ /* we can't point to actual group, it is in the object and so
+ * there is no unique group to point to, hence the index */
prop= RNA_def_property(srna, "group", PROP_INT, PROP_UNSIGNED);
RNA_def_property_int_sdna(prop, NULL, "def_nr");
RNA_def_property_flag(prop, PROP_NOT_EDITABLE);
@@ -463,7 +464,7 @@ static void rna_def_mvert(BlenderRNA *brna)
srna= RNA_def_struct(brna, "MVert", NULL, "Mesh Vertex");
prop= RNA_def_property(srna, "co", PROP_FLOAT, PROP_VECTOR);
- RNA_def_property_ui_text(prop, "Location", "Vertex Location");
+ RNA_def_property_ui_text(prop, "Location", "");
/*prop= RNA_def_property(srna, "no", PROP_FLOAT, PROP_VECTOR);
RNA_def_property_float_funcs(prop, "rna_MVert_no_get", NULL, NULL);
@@ -940,7 +941,7 @@ static void rna_def_mesh(BlenderRNA *brna)
prop= RNA_def_property(srna, "materials", PROP_COLLECTION, PROP_NONE);
RNA_def_property_collection_sdna(prop, NULL, "mat", "totcol");
RNA_def_property_struct_type(prop, "Material");
- RNA_def_property_ui_text(prop, "Materials", "Materials");
+ RNA_def_property_ui_text(prop, "Materials", "");
/*prop= RNA_def_property(srna, "key", PROP_POINTER, PROP_NONE);
RNA_def_property_ui_text(prop, "Key", "");*/