Skip to content

Commit

Permalink
[2d particle] clear renderData when reset (#16251)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxx43 authored Oct 26, 2023
1 parent 02f35dd commit 70220eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cocos/particle-2d/particle-simulator-2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +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);
}

public emitParticle (pos): void {
Expand Down

0 comments on commit 70220eb

Please sign in to comment.