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:
authorJoshua Leung <aligorith@gmail.com>2009-04-13 06:40:56 +0400
committerJoshua Leung <aligorith@gmail.com>2009-04-13 06:40:56 +0400
commitb27436af7c6956be1de46e7903ab96562f080469 (patch)
treec8c642c53b52672c0ad41fb7727f0d2f4f3fd37d /source/blender/editors/animation/anim_intern.h
parentf0fea321291e1dfc1bc070a4546f719c57b24a87 (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.h40
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