diff --git a/src/core/textures/Texture.js b/src/core/textures/Texture.js index 8a91c09..fc0a28e 100644 --- a/src/core/textures/Texture.js +++ b/src/core/textures/Texture.js @@ -149,7 +149,7 @@ this.width = frame.width; this.height = frame.height; - this.crop = frame; + if (!this.trim && !this.rotate && (frame.x + frame.width > this.baseTexture.width || frame.y + frame.height > this.baseTexture.height)) { @@ -166,6 +166,10 @@ this._frame.width = this.trim.width; this._frame.height = this.trim.height; } + else + { + this.crop = frame; + } if (this.valid) {