mirror of
https://github.com/photonstorm/phaser
synced 2024-09-21 06:51:55 +00:00
Merge pull request #1023 from lucbloom/sprite-textureChange-obsolete
Removed obsolete code in setTexture
This commit is contained in:
commit
053f862b6b
1 changed files with 1 additions and 11 deletions
|
@ -132,17 +132,7 @@ Object.defineProperty(PIXI.Sprite.prototype, 'height', {
|
|||
*/
|
||||
PIXI.Sprite.prototype.setTexture = function(texture)
|
||||
{
|
||||
// stop current texture;
|
||||
if(this.texture.baseTexture !== texture.baseTexture)
|
||||
{
|
||||
this.textureChange = true;
|
||||
this.texture = texture;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.texture = texture;
|
||||
}
|
||||
|
||||
this.texture = texture;
|
||||
this.cachedTint = 0xFFFFFF;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue