Skip to content

Commit 4d13702

Browse files
committed
The Particle Emitter Manager has been given a NOOP method called setBlendMode to stop warnings from being thrown if you added an emitter to a Container in the Canvas renderer. Fix phaserjs#4083
1 parent 0f929bf commit 4d13702

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* Fixed a bug in the canvas rendering of both the Static and Dynamic Tilemap Layers where the camera matrix was being multiplied twice with the layer, causing the scale and placement to be off (thanks galerijanamar)
1919
* If you set `pixelArt` to true in your game config (or `antialias` to false) then TileSprites will now respect this when using the Canvas Renderer and disable smoothing on the internal fill canvas.
2020
* TileSprites that were set to be interactive before they had rendered once wouldn't receive a valid input hit area, causing input to fail. They now define their size immediately, allowing them to be made interactive without having rendered. Fix #4085 (thanks @DotTheGreat)
21+
* The Particle Emitter Manager has been given a NOOP method called `setBlendMode` to stop warnings from being thrown if you added an emitter to a Container in the Canvas renderer. Fix #4083 (thanks @maximtsai)
2122

2223
### Examples and TypeScript
2324

src/gameobjects/particles/ParticleEmitterManager.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,18 @@ var ParticleEmitterManager = new Class({
447447
*/
448448
setScrollFactor: function ()
449449
{
450+
},
451+
452+
/**
453+
* A NOOP method so you can pass an EmitterManager to a Container.
454+
* Calling this method will do nothing. It is intentionally empty.
455+
*
456+
* @method Phaser.GameObjects.Particles.ParticleEmitterManager#setBlendMode
457+
* @private
458+
* @since 3.15.0
459+
*/
460+
setBlendMode: function ()
461+
{
450462
}
451463

452464
});

0 commit comments

Comments
 (0)