Skip to content

Commit 86c228d

Browse files
committed
Group.destroy now removes any set filters (thanks @Jmaharman fix phaserjs#844)
1 parent 157103e commit 86c228d

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ Version 2.0.6 - "Jornhill" - -in development-
4848

4949
### Updates
5050

51+
* TypeScript definitions fixes and updates (thanks @clark-stevenson)
5152
* BitmapData.draw can now also take a Phaser.Sprite, Phaser.Image or BitmapData object as a source type. As a result BitmapData.drawSprite is now depcreated.
5253
* BitmapData.alphaMask can now also take a Phaser.Sprite, Phaser.Image or BitmapData object as a source type.
5354
* BitmapData.alphaMask has 2 new optional parameters: sourceRect and maskRect to give more fine-grained control over where the source and mask are drawn and their size
5455
* BitmapData.alphaMask 'mask' parameter is now optional, if not given it will use itself as the mask.
5556
* BitmapData.alphaMask now calls BitmapData.update after running.
5657
* BitmapData.draw now has two optional parameters: width and height, to let you stretch the image being drawn if needed.
58+
* Group.destroy now removes any set filters (thanks @Jmaharman fix #844)
5759

5860
### New Features
5961

36.2 KB
Loading

src/core/Group.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,7 @@ Phaser.Group.prototype.destroy = function (destroyChildren, soft) {
16241624
this.removeAll(destroyChildren);
16251625

16261626
this.cursor = null;
1627+
this.filters = null;
16271628

16281629
if (!soft)
16291630
{

0 commit comments

Comments
 (0)