diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-14 07:58:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-14 07:58:08 +0400 |
commit | 969a079aeb06979257e82ab9c2410ee49c841ba3 (patch) | |
tree | 5a426010aca8aab3c9ed1b0d00aabd0872123e83 /source/blender/blenkernel/intern/key.c | |
parent | 289f627f6335a1c9d2aabf17bfc11ceb8ce97c37 (diff) |
code cleanup: comment (almost) all members of KeyBlock & Key.
Diffstat (limited to 'source/blender/blenkernel/intern/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index fd6d9a9aed0..8c754a726f4 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -326,7 +326,7 @@ void key_curve_tangent_weights(float t, float *data, int type) t2 = t * t; data[0] = -0.5f * t2 + t - 0.5f; - data[1] = 1.5f * t2 - 2.0f * t; + data[1] = 1.5f * t2 - t * 2.0f; data[2] = -1.5f * t2 + t + 0.5f; data[3] = 0.5f * t2; } @@ -346,10 +346,10 @@ void key_curve_normal_weights(float t, float *data, int type) else if (type == KEY_CARDINAL) { fc = 0.71f; - data[0] = -6.0f * fc * t + 4.0f * fc; + data[0] = -6.0f * fc * t + 4.0f * fc; data[1] = 6.0f * (2.0f - fc) * t + 2.0f * (fc - 3.0f); data[2] = 6.0f * (fc - 2.0f) * t + 2.0f * (3.0f - 2.0f * fc); - data[3] = 6.0f * fc * t - 2.0f * fc; + data[3] = 6.0f * fc * t - 2.0f * fc; } else if (type == KEY_BSPLINE) { data[0] = -1.0f * t + 1.0f; |