diff --git a/cocos2d/animation/animation-curves.js b/cocos2d/animation/animation-curves.js index a33a5f86ed..29e83971ac 100644 --- a/cocos2d/animation/animation-curves.js +++ b/cocos2d/animation/animation-curves.js @@ -104,8 +104,7 @@ var DynamicAnimCurve = cc.Class({ value = fromVal + (toVal - fromVal) * ratio; } else { - var lerp = fromVal.lerp; - if (lerp) { + if (fromVal && fromVal.lerp) { value = fromVal.lerp(toVal, ratio); } else {