mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Fix Particle System issue in editor (#2805)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user