diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 19:08:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-13 19:08:03 +0300 |
commit | 91352006c4ba8276ff2c7c8ae21461d16cf3f702 (patch) | |
tree | 6eb2a8d52e697c045eadca8e9e122e14dc73a4a6 /source/blender/makesrna/intern/rna_armature.c | |
parent | 6df83fba020c596aaf242271237f333d178e4c0e (diff) |
arbitrary property and function support for rna properties (arrays and collections), this means functions can be easily added.
eg.
scene.objects.link()
object.constraints.new()
mesh.verts.transform(...)
mesh.faces.active
PropertyRNA stores an StructRNA pointer where these can be defined.
Diffstat (limited to 'source/blender/makesrna/intern/rna_armature.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_armature.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c index f73ac517213..25d602a8b2e 100644 --- a/source/blender/makesrna/intern/rna_armature.c +++ b/source/blender/makesrna/intern/rna_armature.c @@ -663,7 +663,7 @@ static void rna_def_armature(BlenderRNA *brna) /* Collections */ prop= RNA_def_property(srna, "bones", PROP_COLLECTION, PROP_NONE); RNA_def_property_collection_sdna(prop, NULL, "bonebase", NULL); - RNA_def_property_collection_funcs(prop, 0, "rna_Armature_bones_next", 0, 0, 0, 0, 0, 0, 0); + RNA_def_property_collection_funcs(prop, 0, "rna_Armature_bones_next", 0, 0, 0, 0, 0); RNA_def_property_struct_type(prop, "Bone"); RNA_def_property_ui_text(prop, "Bones", ""); @@ -676,7 +676,7 @@ static void rna_def_armature(BlenderRNA *brna) RNA_def_property_pointer_funcs(prop_act, NULL, "rna_Armature_act_bone_set", NULL); /* todo, redraw */ - RNA_def_property_collection_active(prop, prop_act); +// RNA_def_property_collection_active(prop, prop_act); } prop= RNA_def_property(srna, "edit_bones", PROP_COLLECTION, PROP_NONE); @@ -692,7 +692,7 @@ static void rna_def_armature(BlenderRNA *brna) RNA_def_property_ui_text(prop_act, "Active EditBone", "Armatures active edit bone."); //RNA_def_property_update(prop_act, 0, "rna_Armature_act_editbone_update"); RNA_def_property_pointer_funcs(prop_act, NULL, "rna_Armature_act_edit_bone_set", NULL); - RNA_def_property_collection_active(prop, prop_act); +// RNA_def_property_collection_active(prop, prop_act); } /* Enum values */ |