[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45443] trunk/blender/source/blender/ blenkernel/intern/ipo.c: Animation version patching for Absolute Shape Keys ("speed" curve ->
Joshua Leung
aligorith at gmail.com
Fri Apr 6 13:45:45 CEST 2012
Revision: 45443
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45443
Author: aligorith
Date: 2012-04-06 11:45:45 +0000 (Fri, 06 Apr 2012)
Log Message:
-----------
Animation version patching for Absolute Shape Keys ("speed" curve ->
"eval_time") now works
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/ipo.c
Modified: trunk/blender/source/blender/blenkernel/intern/ipo.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/ipo.c 2012-04-06 11:24:42 UTC (rev 45442)
+++ trunk/blender/source/blender/blenkernel/intern/ipo.c 2012-04-06 11:45:45 UTC (rev 45443)
@@ -325,12 +325,15 @@
{
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;
}
More information about the Bf-blender-cvs
mailing list