Mercurial > hg > dmlib
changeset 189:06da4e365dc9
Add few comments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 16:49:06 +0300 |
parents | 47c327fb321a |
children | 87b46e61f2c4 |
files | jssplr.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jssplr.c Sat Oct 06 16:36:39 2012 +0300 +++ b/jssplr.c Sat Oct 06 16:49:06 2012 +0300 @@ -144,6 +144,7 @@ if (!pe->exec) return FALSE; + // Find current point, if not last point while (point < env->npoints - 1) { if (pe->frame >= env->points[point + 1].frame) @@ -151,6 +152,8 @@ else break; } + + // Check for last point if (pe->frame >= env->points[env->npoints - 1].frame) { if (env->flags & jenvfLooped) @@ -168,7 +171,7 @@ } else { - // Linearly interpolate the value for given frame + // Linearly interpolate the value between current and next point JSSEnvelopePoint *ep1 = &env->points[point], *ep2 = &env->points[point + 1];