Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-14 21:46:57 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-14 21:46:57 +0300
commita2cc29d22166fc535eb66c14f7878552ae422f63 (patch)
treead88930b4528a2ead92a87ebd993650a9888fa93 /source/blender/makesrna/RNA_types.h
parenta2175968a7a21bd09463ac9582130c593d27094d (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.h15
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;