mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
fix non-loop particle play issue (#3962)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user