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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-04-06 15:45:45 +0400
committerJoshua Leung <aligorith@gmail.com>2012-04-06 15:45:45 +0400
commit186f018e6ee81edef14255c9fd9b6d7b5480449b (patch)
treef791098262832cc9546670e5e2bd79cec629363d /source/blender/blenkernel/intern/ipo.c
parent6408813f6fbb30db62567c1b1b5a9206904106c1 (diff)
Animation version patching for Absolute Shape Keys ("speed" curve ->
"eval_time") now works
Diffstat (limited to 'source/blender/blenkernel/intern/ipo.c')
-rw-r--r--source/blender/blenkernel/intern/ipo.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c
index 51c4caa1cf4..c1b5d07de4a 100644
--- a/source/blender/blenkernel/intern/ipo.c
+++ b/source/blender/blenkernel/intern/ipo.c
@@ -325,12 +325,15 @@ static char *shapekey_adrcodes_to_paths (int adrcode, int *UNUSED(array_index))
{
static char buf[128];
- /* block will be attached to ID_KE block, and setting that we alter is the 'value' (which sets keyblock.curval) */
- // XXX adrcode 0 was dummy 'speed' curve
- if (adrcode == 0)
- strcpy(buf, "speed");
- else
+ /* block will be attached to ID_KE block... */
+ if (adrcode == 0) {
+ /* adrcode=0 was the misnamed "speed" curve (now "evaluation time") */
+ BLI_strncpy(buf, "eval_time", sizeof(buf));
+ }
+ else {
+ /* setting that we alter is the "value" (i.e. keyblock.curval) */
BLI_snprintf(buf, sizeof(buf), "key_blocks[%d].value", adrcode);
+ }
return buf;
}