Skip to content

Commit

Permalink
Merge pull request #15245 from RolandCsibrei/master
Browse files Browse the repository at this point in the history
Added notifying onStopped observers in gpu particles
  • Loading branch information
sebavan authored Jul 2, 2024
2 parents d94f017 + e40be02 commit b9f57f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dev/core/src/Particles/gpuParticleSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,9 @@ export class GPUParticleSystem extends BaseParticleSystem implements IDisposable
if (this._stopped) {
return;
}

this.onStoppedObservable.notifyObservers(this);

this._stopped = true;
}

Expand Down

0 comments on commit b9f57f0

Please sign in to comment.