From b07e888aadf4e39bcc885169a40bd5153aff7a79 Mon Sep 17 00:00:00 2001 From: 2youyouo2 <501251991@qq.com> Date: Wed, 23 Dec 2015 18:31:17 +0800 Subject: [PATCH] EPSILON is too small --- cocos2d/animation/motion-path-helper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cocos2d/animation/motion-path-helper.js b/cocos2d/animation/motion-path-helper.js index 28c9553d7c..8b3c0639ea 100644 --- a/cocos2d/animation/motion-path-helper.js +++ b/cocos2d/animation/motion-path-helper.js @@ -240,8 +240,7 @@ function sampleMotionPaths (motionPaths, data, duration, fps) { // ensure every ratio section's length is the same var startRatioOffset = 0; - // from es6 Number.EPSILON - var EPSILON = 2.220446049250313e-16; + var EPSILON = 1e-6; // do not need to compute last path for (var i = 0, l = motionPaths.length; i < l-1; i++) {