Skip to content

Commit a1102d4

Browse files
committed
Added re-tint reset.
1 parent 2cd59bb commit a1102d4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/gameobjects/components/Core.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ Phaser.Component.Core.preUpdate = function () {
106106
this.renderOrderID = this.game.stage.currentRenderOrderID++;
107107
}
108108

109+
this.texture.requiresReTint = false;
110+
109111
if (this.animations)
110112
{
111113
this.animations.update();
@@ -174,11 +176,11 @@ Phaser.Component.Core.prototype = {
174176

175177
/**
176178
* The key of the image or texture used by this Game Object during rendering.
177-
* If it is a string it's the string used to retrieve the texture from the Phaser.Cache.
178-
* It can also be an instance of a RenderTexture, BitmapData or PIXI.Texture.
179+
* If it is a string it's the string used to retrieve the texture from the Phaser Image Cache.
180+
* It can also be an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.
179181
* If a Game Object is created without a key it is automatically assigned the key `__default` which is a 32x32 transparent PNG stored within the Cache.
180-
* If a Game Object is given a key which doesn't exist in the Cache it is re-assigned the key `__missing` which is a 32x32 PNG of a green box with a line through it.
181-
* @property {string|Phaser.RenderTexture|Phaser.BitmapData|PIXI.Texture} key
182+
* If a Game Object is given a key which doesn't exist in the Image Cache it is re-assigned the key `__missing` which is a 32x32 PNG of a green box with a line through it.
183+
* @property {string|Phaser.RenderTexture|Phaser.BitmapData|Phaser.Video|PIXI.Texture} key
182184
*/
183185
key: '',
184186

0 commit comments

Comments
 (0)