diff --git a/src/core/sprites/webgl/SpriteRenderer.js b/src/core/sprites/webgl/SpriteRenderer.js index ec3c2e0..ffdf6ff 100644 --- a/src/core/sprites/webgl/SpriteRenderer.js +++ b/src/core/sprites/webgl/SpriteRenderer.js @@ -179,9 +179,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;