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:
Diffstat (limited to 'source/blender/makesdna/DNA_key_types.h')
-rw-r--r--source/blender/makesdna/DNA_key_types.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_key_types.h b/source/blender/makesdna/DNA_key_types.h
index 60ab01c901b..5ab67d286b6 100644
--- a/source/blender/makesdna/DNA_key_types.h
+++ b/source/blender/makesdna/DNA_key_types.h
@@ -62,13 +62,27 @@ typedef struct KeyBlock {
void *data; /* array of shape key values, size is (Key->elemsize * KeyBlock->totelem) */
char name[64]; /* MAX_NAME (unique name, user assigned) */
char vgroup[64]; /* MAX_VGROUP_NAME (optional vertex group), array gets allocated into 'weights' when set */
+ char facemap[64]; /* facemap name, if applicable */
/* ranges, for RNA and UI only to clamp 'curval' */
float slidermin;
float slidermax;
-
} KeyBlock;
+typedef enum eKeyOwnerType {
+ /* 0 used as 'undefined', for versioning */
+ KEY_OWNER_MESH = 1,
+ KEY_OWNER_CURVE = 2,
+ KEY_OWNER_LATTICE = 3,
+ KEY_OWNER_PARTICLES = 4,
+ KEY_OWNER_CACHELIB = 5,
+} eKeyOwnerType;
+
+/* DEPRECATED */
+typedef struct KeyFrom {
+ int type DNA_DEPRECATED;
+ int index DNA_DEPRECATED; /* index of owner in the id */
+} KeyFrom;
typedef struct Key {
ID id;
@@ -90,6 +104,9 @@ typedef struct Key {
struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */
ID *from;
+ KeyFrom from_extra DNA_DEPRECATED;
+ int fromtype; /* supplementary type of the Key owner */
+ int fromindex; /* index of owner in the id */
int totkey; /* (totkey == BLI_listbase_count(&key->block)) */
short flag;