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:
authorCampbell Barton <ideasman42@gmail.com>2009-08-30 03:05:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-08-30 03:05:46 +0400
commit530deb73a988a2adfc8add73b842507b68254812 (patch)
tree9980e7aafbc7fa397f1a8b830ac7f4ff95cf03c7 /source/blender/makesrna/RNA_types.h
parentc6ccf5fd2e9ff8a0bfe045c85e4675b3a8940255 (diff)
Workarounds for 2 rna bugs.
- mesh face properties that have no data are tested for length. - the rawtype of MFace.verts is not set, defaulting to CHAR, meaning only verts with 256 verts could be added from python. temp workaround by making PROP_RAW_INT the first in the enum. For some reason makesrna.c doesn't set the raw type MFace.verts at all.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r--source/blender/makesrna/RNA_types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h
index 1acbfb21385..b57cbc3aa2c 100644
--- a/source/blender/makesrna/RNA_types.h
+++ b/source/blender/makesrna/RNA_types.h
@@ -176,11 +176,11 @@ typedef struct CollectionPointerLink {
} CollectionPointerLink;
typedef enum RawPropertyType {
- PROP_RAW_CHAR,
+ PROP_RAW_INT, // XXX - abused for types that are not set, eg. MFace.verts, needs fixing.
PROP_RAW_SHORT,
- PROP_RAW_INT,
- PROP_RAW_FLOAT,
- PROP_RAW_DOUBLE
+ PROP_RAW_CHAR,
+ PROP_RAW_DOUBLE,
+ PROP_RAW_FLOAT
} RawPropertyType;
typedef struct RawArray {