From 7cd4e2781afcc164232ef7b9ea5cd3fc20165dea Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 10 Jan 2009 22:57:33 +0000 Subject: RNA * Finished DNA_lamp_types.h, DNA_world_types.h and DNA_sound_types.h. * Renamed "parent" struct property to "nested", and also remaining "from" usage to "base". * Added a NEVER_NULL subtype for pointers and use it for all properties that apply. * Make sure all structs have a description, and fix any other DOC_BROKEN descriptions, also many other naming consistency improvements. --- source/blender/makesrna/intern/rna_lattice.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/makesrna/intern/rna_lattice.c') diff --git a/source/blender/makesrna/intern/rna_lattice.c b/source/blender/makesrna/intern/rna_lattice.c index 6610cf895b4..5fb4d37c5d4 100644 --- a/source/blender/makesrna/intern/rna_lattice.c +++ b/source/blender/makesrna/intern/rna_lattice.c @@ -106,7 +106,7 @@ static void rna_def_latticepoint(BlenderRNA *brna) prop= RNA_def_property(srna, "groups", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_funcs(prop, "rna_LatticePoint_groups_begin", "rna_iterator_array_next", "rna_iterator_array_end", "rna_iterator_array_get", 0, 0, 0, 0); - RNA_def_property_struct_type(prop, "MeshVertexGroup"); + RNA_def_property_struct_type(prop, "VertexGroupElement"); RNA_def_property_ui_text(prop, "Groups", "Weights for the vertex groups this point is member of."); } @@ -122,7 +122,7 @@ static void rna_def_lattice(BlenderRNA *brna) {0, NULL, NULL, NULL}}; srna= RNA_def_struct(brna, "Lattice", "ID"); - RNA_def_struct_ui_text(srna, "Lattice", "DOC_BROKEN"); + RNA_def_struct_ui_text(srna, "Lattice", "Lattice datablock defining a grid for deforming other objects."); prop= RNA_def_property(srna, "points_u", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "pntsu"); @@ -160,7 +160,8 @@ static void rna_def_lattice(BlenderRNA *brna) rna_def_ipo_common(srna); - prop= RNA_def_property(srna, "key", PROP_POINTER, PROP_NONE); + prop= RNA_def_property(srna, "shape_keys", PROP_POINTER, PROP_NONE); + RNA_def_property_pointer_sdna(prop, NULL, "key"); RNA_def_property_ui_text(prop, "Shape Keys", ""); prop= RNA_def_property(srna, "points", PROP_COLLECTION, PROP_NONE); -- cgit v1.2.3