Merge pull request #1023 from lucbloom/sprite-textureChange-obsolete

Removed obsolete code in setTexture
This commit is contained in:
Richard Davey 2014-07-15 15:14:36 +01:00
commit 053f862b6b

View file

@ -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;
};