diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 07:06:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-12-19 07:06:24 +0300 |
commit | 04428d6750d7309d7c7436c65b465f2b51d3d6a2 (patch) | |
tree | 683c884c3c3986f8dcab09e3207b4a7743a5e1b5 /source/blender/makesrna/intern/rna_armature.c | |
parent | d9de6fca6cda2a7ddeeb936692b529182a14dec9 (diff) |
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.
Diffstat (limited to 'source/blender/makesrna/intern/rna_armature.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_armature.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c index a29722c802b..3c9090fbcf3 100644 --- a/source/blender/makesrna/intern/rna_armature.c +++ b/source/blender/makesrna/intern/rna_armature.c @@ -96,7 +96,8 @@ static void rna_def_bone(BlenderRNA *brna) StructRNA *srna; PropertyRNA *prop; - srna= RNA_def_struct(brna, "Bone", NULL, "Bone"); + srna= RNA_def_struct(brna, "Bone", NULL); + RNA_def_struct_ui_text(srna, "Bone", "member of the 'Armature' type"); /* pointers/collections */ /* parent (pointer) */ @@ -251,7 +252,9 @@ void rna_def_armature(BlenderRNA *brna) {ARM_GHOST_KEYS, "KEYS", "On Keyframes", "Draw Ghosts of poses on Keyframes."}, {0, NULL, NULL, NULL}}; - srna= RNA_def_struct(brna, "Armature", "ID", "Armature"); + srna= RNA_def_struct(brna, "Armature", "ID"); + RNA_def_struct_ui_text(srna, "Armature", "'Object' containing a hierarchy of 'Bones', often used to rig characters"); + RNA_def_struct_sdna(srna, "bArmature"); /* Collections */ |