Skip to content

Commit a657856

Browse files
committed
Emitter sends the processors to the particles
1 parent 80374dd commit a657856

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

v3/src/gameobjects/particles/ParticleEmitter.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ var ParticleEmitter = new Class({
639639
this.visible = this.follow.visible;
640640
}
641641

642+
// Any particle processors?
643+
var processors = this.manager.getProcessors();
644+
642645
var particles = this.alive;
643646
var length = particles.length;
644647

@@ -647,7 +650,7 @@ var ParticleEmitter = new Class({
647650
var particle = particles[index];
648651

649652
// update returns `true` if the particle is now dead (lifeStep < 0)
650-
if (particle.update(delta, step))
653+
if (particle.update(delta, step, processors))
651654
{
652655
// Moves the dead particle to the end of the particles array (ready for splicing out later)
653656
var last = particles[length - 1];

0 commit comments

Comments
 (0)