From b55919069e98ecf877d8d44189a0560982583b36 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 22 Sep 2009 01:27:48 +0000 Subject: [PATCH] 2.5 - Keyframe types are now preserved after inserting keyframes which would overwrite the existing keyframes --- source/blender/editors/animation/keyframing.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index e8451b0f979..e3e72a532e2 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -207,8 +207,13 @@ int insert_bezt_fcurve (FCurve *fcu, BezTriple *bezt, short flag) // TODO: perform some other operations? } else { + char oldKeyType= BEZKEYTYPE(fcu->bezt + i); + /* just brutally replace the values */ *(fcu->bezt + i) = *bezt; + + /* special exception for keyframe type - copy value back so that this info isn't lost */ + BEZKEYTYPE(fcu->bezt + i)= oldKeyType; } } }