diff options
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_anim_api.h | 4 | ||||
-rw-r--r-- | source/blender/editors/include/ED_keyframes_edit.h | 13 | ||||
-rw-r--r-- | source/blender/editors/include/ED_keyframing.h | 11 |
3 files changed, 23 insertions, 5 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 492e2a22b84..4e55f8c364c 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -285,8 +285,8 @@ void ANIM_nla_mapping_apply(struct Object *ob, struct Ipo *ipo, short restore, s /* --------- anim_deps.c, animation updates -------- */ /* generic update flush, reads from Context screen (layers) and scene */ -void ED_anim_dag_flush_update(struct bContext *C); -void ED_update_for_newframe(struct bContext *C, int mute); +void ED_anim_dag_flush_update(const struct bContext *C); +void ED_update_for_newframe(const struct bContext *C, int mute); /* ************************************************* */ /* OPERATORS */ diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 3b553320f32..75faaf85d14 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -83,7 +83,7 @@ typedef enum eEditKeyframes_Mirror { } eEditKeyframes_Mirror; /* ************************************************ */ -/* Editing API */ +/* Non-Destuctive Editing API (keyframes_edit.c) */ /* --- Generic Properties for Bezier Edit Tools ----- */ @@ -129,9 +129,20 @@ BeztEditFunc ANIM_editkeyframes_ipo(short mode); void ANIM_editkeyframes_ipocurve_ipotype(struct IpoCurve *icu); /* ************************************************ */ +/* Destructive Editing API (keyframes_general.c) */ + +void delete_icu_key(struct IpoCurve *icu, int index, short do_recalc); +void delete_ipo_keys(struct Ipo *ipo); +void duplicate_ipo_keys(struct Ipo *ipo); + +void clean_ipo_curve(struct IpoCurve *icu, float thresh); +void smooth_ipo_curve(struct IpoCurve *icu, short mode); + +/* ************************************************ */ // XXX all of these funcs should be depreceated or at least renamed! +/* in keyframes_edit.c */ short is_ipo_key_selected(struct Ipo *ipo); void set_ipo_key_selection(struct Ipo *ipo, short sel); diff --git a/source/blender/editors/include/ED_keyframing.h b/source/blender/editors/include/ED_keyframing.h index f4be3f06c6b..9529058b952 100644 --- a/source/blender/editors/include/ED_keyframing.h +++ b/source/blender/editors/include/ED_keyframing.h @@ -31,9 +31,16 @@ struct ListBase; struct ID; +struct Ipo; struct IpoCurve; struct BezTriple; +/* ************ IPO/IPO-Curve Management ************** */ +// XXX these will need to be updated for RNA-IPO stuff + +struct Ipo *verify_ipo(struct ID *from, short blocktype, char actname[], char constname[], char bonename[], short add); +struct IpoCurve *verify_ipocurve(struct ID *from, short blocktype, char actname[], char constname[], char bonename[], int adrcode, short add); + /* ************ Keyframing Management **************** */ /* Lesser Keyframing API call: @@ -84,8 +91,8 @@ short deletekey(struct ID *id, int blocktype, char *actname, char *constname, in * These handle keyframes management from various spaces. They will handle the menus * required for each space. */ -void common_insertkey(void); -void common_deletekey(void); +void common_insertkey(const struct bContext *C); +void common_deletekey(const struct bContext *C); /* ************ Auto-Keyframing ********************** */ /* Notes: |