Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-09-22 05:27:48 +0400
committerJoshua Leung <aligorith@gmail.com>2009-09-22 05:27:48 +0400
commitb55919069e98ecf877d8d44189a0560982583b36 (patch)
treed16d7a7c5859221d14e7180a6a3090ec95e58b49 /source
parent9182dc3b8f5e2478d3784741b6a77ad6073ac0a1 (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.c5
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;
}
}
}