From 52f551678b3c9020bad91041ad28a71d4e776140 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 17 Sep 2007 11:41:12 +0000 Subject: == Action Editor - Copy and Paste Tools == Now it is possible to do Copy+Paste in the Action Editor, like in the IPO Editor. There are two new buttons in the Action Editor header for this, using the familiar icons. * To copy... Select the keyframes you wish to copy, and the channels that they occur in (except for ShapeKey mode, where it is not possible to select channels). Click copy button. * To paste... Place the current frame where you want the first of the keyframes from the buffer is to be pasted. Select all channels you wish the keyframes to be pasted into. Click paste button. Currently, keyframes are only pasted into 'compatible' curves (i.e. LocX keyframes can only go to LocX, and so on). This may change after user feedback, if this is found to be too restrictive. == Code Changes == I've made a few changes which allow this code to be nicer. * renamed insert_vert_ipo to insert_vert_icu, as that represents its actual purpose better (and changed all occurrences I could find) * created a new function, insert_bezt_icu, which does the actual inserting of provided BezTriple data to a given IpoCurve * recoded insert_vert_icu to use this new function, and also the IPO-Editor keyframe pasting (i.e. pasting in Editmode) --- source/blender/blenkernel/bad_level_call_stubs/stubs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/bad_level_call_stubs/stubs.c') diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c index 04fac832cc4..dc65750f7ba 100644 --- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c +++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c @@ -59,7 +59,7 @@ struct bPythonConstraint; struct bConstraintOb; char *getIpoCurveName( struct IpoCurve * icu ); -void insert_vert_ipo(struct IpoCurve *icu, float x, float y); +void insert_vert_icu(struct IpoCurve *icu, float x, float y); struct IpoCurve *verify_ipocurve(struct ID *id, short a, char *b, char *d, int e); void elbeemDebugOut(char *msg); void fluidsimSettingsFree(struct FluidsimSettings* sb); @@ -83,7 +83,7 @@ char *getIpoCurveName( struct IpoCurve * icu ) return 0; } -void insert_vert_ipo(struct IpoCurve *icu, float x, float y) +void insert_vert_icu(struct IpoCurve *icu, float x, float y) { } -- cgit v1.2.3