diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-06-14 14:33:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-06-14 14:33:26 +0400 |
commit | 6a0365f59c9981ff143dc3ea7266ca76c8bf10cb (patch) | |
tree | 80a42d1454a1a1ae9b582fcf79234568bacdc37c /source/blender/makesrna/intern | |
parent | 329277bcfead5e2b3a1f5791f1c3628263e63ff4 (diff) |
- option for redraw timer to playback the animation
- py utility property group.users_dupli_group
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 4673f23b1ae..2d99be4461e 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1086,6 +1086,17 @@ int RNA_enum_name(EnumPropertyItem *item, const int value, const char **name) return 0; } +int RNA_enum_description(EnumPropertyItem *item, const int value, const char **description) +{ + for (; item->identifier; item++) { + if(item->identifier[0] && item->value==value) { + *description = item->description; + return 1; + } + } + return 0; +} + int RNA_property_enum_identifier(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const int value, const char **identifier) { EnumPropertyItem *item= NULL; |