diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-15 02:17:55 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-15 02:17:55 +0300 |
commit | cc59417cae9de2c08900d76b3d9cfb6683e530b2 (patch) | |
tree | 5debe30cc15a8908ca35430bc7daf754da3450ec /source/blender/makesrna/RNA_types.h | |
parent | e7e655ce746039601d8ecc3896db744e81c4dea8 (diff) |
RNA:
- Added an autogenerated C++ API, basically a simple layer over the C
API, but with the advantage that it fits the object oriented RNA
model better. Read-only still like the C API.
- Had to rename "protected" property in Action Group because it is
a C++ keyword, called it "locked" since that seems more consistent
anyway?
- It's not used anywhere, so here's some example code I used to test it,
to get an idea of how it would be used:
http://pasteall.org/4582/cpp
- Also, ID names are now editable.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 03c6fc1a335..fb29d34184d 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -25,6 +25,10 @@ #ifndef RNA_TYPES #define RNA_TYPES +#ifdef __cplusplus +extern "C" { +#endif + struct PropertyRNA; struct StructRNA; struct BlenderRNA; @@ -148,6 +152,10 @@ typedef struct StructRNA StructRNA; typedef struct BlenderRNA BlenderRNA; +#ifdef __cplusplus +} +#endif + #endif /* RNA_TYPES */ |