From c6fd1ccf85fb5a69c93d374a2aada04bbc9407ca Mon Sep 17 00:00:00 2001 From: pandamicro Date: Tue, 5 Jun 2018 18:53:31 +0800 Subject: [PATCH] Fix Particle System issue in editor (#2805) --- cocos2d/particle/CCParticleSystem.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cocos2d/particle/CCParticleSystem.js b/cocos2d/particle/CCParticleSystem.js index 678bb20dea..a37eb660d1 100644 --- a/cocos2d/particle/CCParticleSystem.js +++ b/cocos2d/particle/CCParticleSystem.js @@ -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();