fix particleSystem load bug (#2932)

This commit is contained in:
PP
2018-07-02 13:33:41 +08:00
committed by pandamicro
parent 0b8f0eddf4
commit 87545510d2
+1 -1
View File
@@ -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