diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-04 22:25:24 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-01-04 22:25:24 +0300 |
commit | 6ec52fc1b573e2904d7d08728f120589b649a08b (patch) | |
tree | c0e489edf0ccae9e0d81e4262e532b80cd40d4bd /source/blender/makesrna/intern/rna_internal.h | |
parent | df6caaed1ebe6076893853a2573a747a28028f22 (diff) |
RNA
* DNA_cloth_types.h, patch by Roelf de Kock. The gravity[3] member
is not being parsed correct by makesdna.c and will give issues
even when trying to fix it. Worked around it for now in RNA by
wrapping it manually, but this should really be fixed in the DNA
genetics code, added a comment about it in DNA_cloth_types.h.
* Handle vertex groups and uv layers more consistent now. They are
all exposed as strings now. Reason is that indices don't really
say much, and a direct pointer is not always possible because for
example a uv layer in a material can be used for multiple objects
and so there is no single pointer. In python it is not too hard
to use either since the strings works as a key for lookups.
For the user interface we can later think of some method to
generate popup menus in a way that works for vertex groups,
uv layers, bones etc.
* This also fixes the XXX's in rna_modifier.c, I think that can be
marked done.
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h index 01177314f2c..7c2a1fd8603 100644 --- a/source/blender/makesrna/intern/rna_internal.h +++ b/source/blender/makesrna/intern/rna_internal.h @@ -99,6 +99,7 @@ void RNA_def_actuator(struct BlenderRNA *brna); void RNA_def_brush(struct BlenderRNA *brna); void RNA_def_brushclone(struct BlenderRNA *brna); void RNA_def_camera(struct BlenderRNA *brna); +void RNA_def_cloth(struct BlenderRNA *brna); void RNA_def_color(struct BlenderRNA *brna); void RNA_def_constraint(struct BlenderRNA *brna); void RNA_def_controller(struct BlenderRNA *brna); @@ -139,6 +140,13 @@ void RNA_def_world(struct BlenderRNA *brna); void rna_def_ipo_common(struct StructRNA *srna); void rna_def_texmat_common(struct StructRNA *srna, const char *texspace_editable); +void rna_object_vgroup_name_index_get(struct PointerRNA *ptr, char *value, int index); +int rna_object_vgroup_name_index_length(struct PointerRNA *ptr, int index); +void rna_object_vgroup_name_index_set(struct PointerRNA *ptr, const char *value, short *index); +void rna_object_vgroup_name_set(struct PointerRNA *ptr, const char *value, char *result, int maxlen); +void rna_object_uvlayer_name_set(struct PointerRNA *ptr, const char *value, char *result, int maxlen); +void rna_object_vcollayer_name_set(struct PointerRNA *ptr, const char *value, char *result, int maxlen); + /* ID Properties */ extern StringPropertyRNA rna_IDProperty_string; |