diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-25 23:29:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-25 23:29:01 +0300 |
commit | 985a4c1e5ed9c00face5bcf69048bf108ff99aaf (patch) | |
tree | d2946e4701bc6fc55a0f2af2432e56a47989c648 /source/blender/makesrna/RNA_access.h | |
parent | 232edfa34ea2a069c34036c801f97146818bee2e (diff) |
RNA:
* Test with constructing RNA paths from pointer + property, based on
a callback per struct. For animato we'll need to be able to do this,
for keyframing from buttons, unless we can somehow derive the paths
from the interface code, which seems like an unnecessary burden.
However constructing such paths is not always quick, and we need a
fast way to find out if a property is animated for drawing buttons,
so this may not be the best solution.
See rna_mesh.c for some callbacks created as a test.
* Added BLI_sprintfN to mallocN a new string using printf style
formatting.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index 0317e855b6e..e2d3f85f550 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -411,6 +411,8 @@ char *RNA_path_back(const char *path); int RNA_path_resolve(PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop); +char *RNA_path_from_ID_to_property(PointerRNA *ptr, PropertyRNA *prop); + #if 0 /* Dependency * |