diff --git a/cocos2d/core/components/CCAnimation.js b/cocos2d/core/components/CCAnimation.js index f8edaef626..757f9f77ab 100644 --- a/cocos2d/core/components/CCAnimation.js +++ b/cocos2d/core/components/CCAnimation.js @@ -81,6 +81,10 @@ var Animation = cc.Class({ this._defaultClip = value; + if (!value) { + return; + } + var clips = this._clips; for (var i = 0, l = clips.length; i < l; i++) {