diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-09-22 05:27:48 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-09-22 05:27:48 +0400 |
commit | b55919069e98ecf877d8d44189a0560982583b36 (patch) | |
tree | d16d7a7c5859221d14e7180a6a3090ec95e58b49 /source | |
parent | 9182dc3b8f5e2478d3784741b6a77ad6073ac0a1 (diff) |
2.5 - Keyframe types are now preserved after inserting keyframes which would overwrite the existing keyframes
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } } } |