diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-04-13 06:40:56 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-04-13 06:40:56 +0400 |
commit | b27436af7c6956be1de46e7903ab96562f080469 (patch) | |
tree | c8c642c53b52672c0ad41fb7727f0d2f4f3fd37d /source/blender/editors/animation/anim_intern.h | |
parent | f0fea321291e1dfc1bc070a4546f719c57b24a87 (diff) |
2.5 - Separated Keying Sets code out into its own file
Diffstat (limited to 'source/blender/editors/animation/anim_intern.h')
-rw-r--r-- | source/blender/editors/animation/anim_intern.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_intern.h b/source/blender/editors/animation/anim_intern.h new file mode 100644 index 00000000000..6cbecab7832 --- /dev/null +++ b/source/blender/editors/animation/anim_intern.h @@ -0,0 +1,40 @@ +/* Testing code for 2.5 animation system + * Copyright 2009, Joshua Leung + */ + +#ifndef ANIM_INTERN_H +#define ANIM_INTERN_H + +/* ----------- Common Keyframe Destination Sources ------------ */ +/* (used as part of KeyingSets/Keyframing interface as separation from context) */ + +/* temporary struct to gather data combos to keyframe */ +typedef struct bCommonKeySrc { + struct bCommonKeySrc *next, *prev; + + /* general data/destination-source settings */ + ID *id; /* id-block this comes from */ + + /* specific cases */ + bPoseChannel *pchan; + bConstraint *con; +} bCommonKeySrc; + +/* KeyingSets/Keyframing Interface ------------- */ + +/* list of builtin KeyingSets (defined in keyingsets.c) */ +extern ListBase builtin_keyingsets; + +/* mode for modify_keyframes */ +enum { + MODIFYKEY_MODE_INSERT = 0, + MODIFYKEY_MODE_DELETE, +} eModifyKey_Modes; + +short keyingset_context_ok_poll(bContext *C, KeyingSet *ks); + +short modifykey_get_context_data (bContext *C, ListBase *dsources, KeyingSet *ks); + +int modify_keyframes(bContext *C, ListBase *dsources, KeyingSet *ks, short mode, float cfra); + +#endif // ANIM_INTERN_H |