Skip to content

Commit e033ec9

Browse files
committed
The Emitter no longer checks minParticleScale = maxParticleScale, allowing for fixed scale particles again
1 parent b124f02 commit e033ec9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Version 2.0.4 - "Mos Shirare" - in development
6969
* QuadTree.retrieve now checks to see if the given Sprite has a body before carrying on.
7070
* ArcadePhysics.collideSpriteVsGroup checks if Sprite has a body before carrying on, now safely skips sub-groups or other non-Sprite group children.
7171
* Group.remove now checks the child to see if it's a member of the root Group before removing it, otherwise Pixi throws an Error.
72+
* The Emitter no longer checks if minParticleScale = maxParticleScale for the scale check, allowing for fixed scale particles again.
7273

7374

7475
### New Features

src/particles/arcade/Emitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Phaser.Particles.Arcade.Emitter.prototype.emitParticle = function () {
475475
{
476476
particle.setScaleData(this.scaleData);
477477
}
478-
else if (this.minParticleScale !== this.maxParticleScale)
478+
else if (this.minParticleScale !== 1 || this.maxParticleScale !== 1)
479479
{
480480
particle.scale.set(this.game.rnd.realInRange(this.minParticleScale, this.maxParticleScale));
481481
}

0 commit comments

Comments
 (0)