From db562488d672567dd367d64fa7a8a081e9dcbf9e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 5 Apr 2012 05:05:18 +0000 Subject: report [#30814] Absolute Shape Keys not working in 2.6 This report points out thet absolute shape keys are unusable. The problem is there was no way to adjust the play time of a shape key (all absolte shape keys would start at frame zero with no way to change the speed). Added an 'eval_time' property to the key block that works like the curve path evaluation time, so the time in the keyblock can be controlled. --- source/blender/makesdna/DNA_key_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_key_types.h b/source/blender/makesdna/DNA_key_types.h index f2840a3b9b7..611f4c2a25f 100644 --- a/source/blender/makesdna/DNA_key_types.h +++ b/source/blender/makesdna/DNA_key_types.h @@ -74,9 +74,10 @@ typedef struct Key { short type, totkey; short slurph, flag; + float ctime; /*can never be 0, this is used for detecting old data*/ - int uidgen, pad; /*current free uid for keyblocks*/ + int uidgen; /*current free uid for keyblocks*/ } Key; /* **************** KEY ********************* */ -- cgit v1.2.3