From 81d6271012fb2bade7887311792d7ce95f63fb46 Mon Sep 17 00:00:00 2001 From: zxg0622 <247274249@qq.com> Date: Tue, 5 Mar 2019 11:51:34 +0800 Subject: [PATCH] fix non-loop particle play issue (#3962) --- cocos/3d/framework/particle/particle-system-component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/3d/framework/particle/particle-system-component.ts b/cocos/3d/framework/particle/particle-system-component.ts index 0175352e19..ac21332a54 100644 --- a/cocos/3d/framework/particle/particle-system-component.ts +++ b/cocos/3d/framework/particle/particle-system-component.ts @@ -381,8 +381,8 @@ export class ParticleSystemComponent extends Component { // this._emitRateTimeCounter = 0.0; // this._emitRateDistanceCounter = 0.0; if (!this.loop) { - this._isEmitting = false; - this._isStopped = true; + this.stop(); + return; } }