mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fixed an error when stopping previewing while particles are hidden (#17381)
This commit is contained in:
@@ -140,7 +140,7 @@ export class Simulator {
|
||||
const particles = this.particles;
|
||||
for (let id = 0; id < particles.length; ++id) pool.put(particles[id]);
|
||||
particles.length = 0;
|
||||
this.renderData.resize(0, 0);
|
||||
if (this.renderData) this.renderData.resize(0, 0);
|
||||
}
|
||||
|
||||
public emitParticle (pos): void {
|
||||
|
||||
Reference in New Issue
Block a user