diff --git a/src/core/sprites/webgl/SpriteRenderer.js b/src/core/sprites/webgl/SpriteRenderer.js index 327211b..a416583 100644 --- a/src/core/sprites/webgl/SpriteRenderer.js +++ b/src/core/sprites/webgl/SpriteRenderer.js @@ -221,9 +221,9 @@ var w0, w1, h0, h1; - if (texture.trim) + if (texture.trim && sprite.tileScale === undefined) { - // if the sprite is trimmed then we need to add the extra space before transforming the sprite coords.. + // if the sprite is trimmed and is not a tilingsprite then we need to add the extra space before transforming the sprite coords.. var trim = texture.trim; w1 = trim.x - aX * trim.width;