From 2e93510a6b137487c89d35f09065f9f1cad81c72 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 7 Nov 2006 18:34:32 +0000 Subject: Patch #5028. by Joshua Leung (aligorith) Key snapping in Action Window, cleanup and added option to snap to current frame. --- source/blender/include/BIF_editaction.h | 4 +++- source/blender/include/BSE_editipo.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/include') diff --git a/source/blender/include/BIF_editaction.h b/source/blender/include/BIF_editaction.h index 2644ad01092..2e882942d02 100644 --- a/source/blender/include/BIF_editaction.h +++ b/source/blender/include/BIF_editaction.h @@ -77,7 +77,9 @@ void transform_actionchannel_keys(int mode, int dummy); void transform_meshchannel_keys(char mode, struct Key *key); struct Key *get_action_mesh_key(void); int get_nearest_key_num(struct Key *key, short *mval, float *x); -void set_snap_actionchannels(void); +void snap_keys_to_frame(void); + +/* channel/strip operations */ void up_sel_action(void); void down_sel_action(void); void top_sel_action(void); diff --git a/source/blender/include/BSE_editipo.h b/source/blender/include/BSE_editipo.h index 2f98c047dc9..b60cd98b80c 100644 --- a/source/blender/include/BSE_editipo.h +++ b/source/blender/include/BSE_editipo.h @@ -135,7 +135,7 @@ void sampledata_to_ipocurve(float *data, int sfra, int efra, struct IpoCurve *ic void ipo_record(void); void sethandles_ipo_keys(struct Ipo *ipo, int code); -void snap_ipo_keys(struct Ipo *ipo); +void snap_ipo_keys(struct Ipo *ipo, short snaptype); void setipotype_ipo(struct Ipo *ipo, int code); void set_ipo_key_selection(struct Ipo *ipo, int sel); int is_ipo_key_selected(struct Ipo *ipo); -- cgit v1.2.3