diff --git a/packages/sprite/src/Sprite.js b/packages/sprite/src/Sprite.js index efbc6dd..bb4bcfb 100644 --- a/packages/sprite/src/Sprite.js +++ b/packages/sprite/src/Sprite.js @@ -197,7 +197,6 @@ this._textureTrimmedID = -1; this._cachedTint = 0xFFFFFF; - this.uvs = this._texture._uvs.uvsFloat32; // so if _width is 0 then width was not set.. if (this._width) { @@ -233,6 +232,12 @@ return; } + // update texture UV here, because base texture can be changed without calling `_onTextureUpdate` + if (this._textureID !== texture._updateID) + { + this.uvs = this._texture._uvs.uvsFloat32; + } + this._transformID = this.transform._worldID; this._textureID = texture._updateID;