diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-27 05:54:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-27 05:54:25 +0300 |
commit | 1c1659eb286b369ffe6ba99207c42611159f24bb (patch) | |
tree | 02eaa19cedf10a01978db892e89d585dcce1707e /source/blender/makesrna/intern/rna_access.c | |
parent | 641072a769cc7bff4d69945c71f536c5b0394bc9 (diff) |
- Right click menu can open links directly to API reference docs (rna and operators)
- Generated and uploaded api docs - http://www.blender.org/documentation/250PythonDoc
- Added Edit docs menu item & operators as discussed with Mindrones, Brecht, Stani & Letterip @ bconf, needs some web backend. python operator can aparently use xml/rpc to upload docstrings.
- Added operator invoke function - context.manager.invoke_props_popup(self.__operator__, event)
this calls a popup for invoke by default (which intern calls execute())
- Own recent commit to game framing applied to non-camera views too.
- v3d->persp is deprecated but still used in some places.
- Transforming strips could overlap 1 frame if moving them below frame 0
- Transforming overlapping strips could go into an eternal loop (though overlapping strips should not exist)
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 525218c5185..f49906554b3 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -381,6 +381,14 @@ static const char *rna_ensure_property_identifier(PropertyRNA *prop) return ((IDProperty*)prop)->name; } +static const char *rna_ensure_property_description(PropertyRNA *prop) +{ + if(prop->magic == RNA_MAGIC) + return prop->description; + else + return ((IDProperty*)prop)->name; /* XXX - not correct */ +} + static const char *rna_ensure_property_name(PropertyRNA *prop) { if(prop->magic == RNA_MAGIC) @@ -561,6 +569,11 @@ const char *RNA_property_identifier(PropertyRNA *prop) return rna_ensure_property_identifier(prop); } +const char *RNA_property_description(PropertyRNA *prop) +{ + return rna_ensure_property_description(prop); +} + PropertyType RNA_property_type(PropertyRNA *prop) { return rna_ensure_property(prop)->type; |