diff --git a/cocos2d/animation/motion-path-helper.js b/cocos2d/animation/motion-path-helper.js index 9196b340af..28c9553d7c 100644 --- a/cocos2d/animation/motion-path-helper.js +++ b/cocos2d/animation/motion-path-helper.js @@ -319,7 +319,9 @@ function sampleMotionPaths (motionPaths, data, duration, fps) { startRatioOffset = 0; } - addNewDatas(values[values.length - 1], DynamicAnimCurve.Linear, ratios[ratios.length - 1]); + if (ratios[ratios.length - 1] !== newRatios[newRatios.length -1]) { + addNewDatas(values[values.length - 1], DynamicAnimCurve.Linear, ratios[ratios.length - 1]); + } } if (CC_TEST) {