Merge pull request #1060 from iconexperience/patch-3

Check for prevTime >= tMin and prevTime <= tMax
This commit is contained in:
Jürg Lehni 2016-06-10 12:00:23 +02:00 committed by GitHub
commit 719392dd2c

View file

@ -245,9 +245,9 @@ PathItem.inject(new function() {
if (curve !== prevCurve) {
// This is a new curve, update noHandles setting.
noHandles = !curve.hasHandles();
} else if (prevTime > 0) {
} else if (prevTime >= tMin && prevTime <= tMax ) {
// Scale parameter when we are splitting same curve multiple
// times, but avoid dividing by zero.
// times, but only if splitting was done previously.
time /= prevTime;
}
if (time < tMin) {