diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-14 21:46:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-11-14 21:46:57 +0300 |
commit | a2cc29d22166fc535eb66c14f7878552ae422f63 (patch) | |
tree | ad88930b4528a2ead92a87ebd993650a9888fa93 /source/blender/makesrna/RNA_types.h | |
parent | a2175968a7a21bd09463ac9582130c593d27094d (diff) |
RNA
* Rename cname to identifier.
* Rename PropertyEnumItem to EnumPropertyItem.
* Wrapped min/max/step/precision, pointer type for RNA.
* Draw FLT_MAX a bit better in buttons.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 41151e58fec..b8d1793a05c 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -147,17 +147,17 @@ typedef struct CollectionPropertyIterator { PointerRNA ptr; } CollectionPropertyIterator; -typedef struct PropertyEnumItem { +typedef struct EnumPropertyItem { int value; - const char *cname; + const char *identifier; const char *name; -} PropertyEnumItem; +} EnumPropertyItem; typedef struct PropertyRNA { struct PropertyRNA *next, *prev; /* C code name */ - const char *cname; + const char *identifier; /* various options */ int flag; @@ -220,7 +220,8 @@ typedef struct FloatPropertyRNA { float softmin, softmax; float hardmin, hardmax; - float step, precision; + float step; + int precision; float defaultvalue; const float *defaultarray; @@ -244,7 +245,7 @@ typedef struct EnumPropertyRNA { PropEnumGetFunc get; PropEnumSetFunc set; - const PropertyEnumItem *item; + const EnumPropertyItem *item; int totitem; int defaultvalue; @@ -286,7 +287,7 @@ typedef struct StructRNA { struct StructRNA *next, *prev; /* C code name */ - const char *cname; + const char *identifier; /* various options */ int flag; |