Fix Particle System issue in editor (#2805)

This commit is contained in:
pandamicro
2018-06-05 18:53:31 +08:00
committed by GitHub
parent 423a698e4f
commit c6fd1ccf85
+4
View File
@@ -1201,6 +1201,10 @@ var ParticleSystem = cc.Class({
},
_finishedSimulation: function () {
if (CC_EDITOR) {
this.stopSystem();
return;
}
this.disableRender();
if (this.autoRemoveOnFinish && this._stopped) {
this.node.destroy();