We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18be50 commit 759e4c6Copy full SHA for 759e4c6
cocos2d/particle/CCParticleSystem.js
@@ -364,8 +364,8 @@ cc.ParticleSystem = cc.Node.extend(/** @lends cc.ParticleSystem# */{
364
this._quadsArrayBuffer = null;
365
}
366
367
- if (typeof(plistFile) === "number") {
368
- var ton = plistFile;
+ if (!plistFile || typeof(plistFile) === "number") {
+ var ton = plistFile || 100;
369
this.setDrawMode(cc.ParticleSystem.TEXTURE_MODE);
370
this.initWithTotalParticles(ton);
371
} else if (plistFile) {
@@ -2824,4 +2824,4 @@ cc.ParticleSystem.TYPE_RELATIVE = 1;
2824
* @constant
2825
* @type Number
2826
*/
2827
-cc.ParticleSystem.TYPE_GROUPED = 2;
+cc.ParticleSystem.TYPE_GROUPED = 2;
0 commit comments