From a1102d4d4d7b5d6ad268514625f86e11b6131e7c Mon Sep 17 00:00:00 2001 From: photonstorm Date: Fri, 8 May 2015 04:12:20 +0100 Subject: [PATCH] Added re-tint reset. --- src/gameobjects/components/Core.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gameobjects/components/Core.js b/src/gameobjects/components/Core.js index 2c6f6caf7..f9f92f582 100644 --- a/src/gameobjects/components/Core.js +++ b/src/gameobjects/components/Core.js @@ -106,6 +106,8 @@ Phaser.Component.Core.preUpdate = function () { this.renderOrderID = this.game.stage.currentRenderOrderID++; } + this.texture.requiresReTint = false; + if (this.animations) { this.animations.update(); @@ -174,11 +176,11 @@ Phaser.Component.Core.prototype = { /** * The key of the image or texture used by this Game Object during rendering. - * If it is a string it's the string used to retrieve the texture from the Phaser.Cache. - * It can also be an instance of a RenderTexture, BitmapData or PIXI.Texture. + * If it is a string it's the string used to retrieve the texture from the Phaser Image Cache. + * It can also be an instance of a RenderTexture, BitmapData, Video or PIXI.Texture. * 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. - * 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. - * @property {string|Phaser.RenderTexture|Phaser.BitmapData|PIXI.Texture} key + * 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. + * @property {string|Phaser.RenderTexture|Phaser.BitmapData|Phaser.Video|PIXI.Texture} key */ key: '',