From 2dbf73f6a032ab44539cfd8c05f5743fbaf33902 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 15 Apr 2009 01:10:36 +0000 Subject: 2.5 PoseLib - First steps to get PoseLib to work in 2.5 * Cleaned up Keyframing API to get eliminate some of the problems faced during the original implementation of PoseLib, thus reducing code redundancy. * Added new Animato evaluation functions specifically for use by PoseLib. * Replaced parts of PoseLib code which relied on old animation system to the equivalent code for Animato. Notice the much cleaner + saner + compact code! Next step is to operatorfy the PoseLib tools (while maintaining possibility for an API to some things) :) --- source/blender/editors/animation/anim_intern.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'source/blender/editors/animation/anim_intern.h') diff --git a/source/blender/editors/animation/anim_intern.h b/source/blender/editors/animation/anim_intern.h index 6cbecab7832..e903007fbc0 100644 --- a/source/blender/editors/animation/anim_intern.h +++ b/source/blender/editors/animation/anim_intern.h @@ -5,36 +5,14 @@ #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 -- cgit v1.2.3