From 87545510d230c4957aed1b6dc2a0a4bf49e7991d Mon Sep 17 00:00:00 2001 From: PP Date: Mon, 2 Jul 2018 13:33:41 +0800 Subject: [PATCH] fix particleSystem load bug (#2932) --- cocos2d/particle/CCParticleSystem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js index e35de534bd..b8f2b5517d 100644 --- a/cocos2d/particle/CCParticleSystem.js +++ b/cocos2d/particle/CCParticleSystem.js @@ -940,7 +940,7 @@ var ParticleSystem = cc.Class({ }, _initTextureWithDictionary: function (dict) { - var imgPath = cc.path.changeBasename(this._plistFile, dict["textureFileName"]); + var imgPath = cc.path.changeBasename(this._plistFile, dict["textureFileName"] || ''); // texture if (dict["textureFileName"]) { // Try to get the texture from the cache